[Bug sanitizer/85777] [7/8/9 Regression] -fsanitize=undefined makes a -Wmaybe-uninitialized warning disappear
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Dec 10 15:53:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85777
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
That can be dealt in the Makefile rules, for sanitization use something like
$(CC) $(CFLAGS) $(WARNOPTS) -S -o /dev/null $<
$(CC) $(CFLAGS) $(SANITIZEOPTS) -c -o $@ $< 2>/dev/null
or similar.
More information about the Gcc-bugs
mailing list