fix warnings because compare_attr gets const nodes now