We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6902e0 commit 3fb0e70Copy full SHA for 3fb0e70
src/analyses/goto_check.cpp
@@ -1968,10 +1968,10 @@ void goto_checkt::goto_check(
1968
else if(d.first == "enable:pointer-primitive-check")
1969
seen = flag_resetter.set_flag(enable_pointer_primitive_check, true);
1970
1971
- if(seen)
1972
- log.warning() << "Found enable and disable pragmas for "
1973
- << d.first << " at " << i.source_location().pretty()
1974
- << messaget::eom;
+ INVARIANT(
+ !seen,
+ "Found enable and disable pragmas for " + id2string(d.first) +
+ " at \n" + i.source_location().pretty());
1975
}
1976
1977
new_code.clear();
0 commit comments