https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61371

--- Comment #5 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Cristian Rodríguez from comment #2)
> It would be.. if there wasn't half a ton of packages using -Werror

In fact, it was committed and the message tells you which option you have to
use to silence the warning:

manuel@gcc10:~$ ~/test1/210581/build/gcc/cc1 -D__DATE__='bla' test.c -Werror
<command-line>:0:0: error: "__DATE__" redefined
[-Werror=builtin-macro-redefined]

manuel@gcc10:~$ ~/test1/210581/build/gcc/cc1 -D__DATE__='bla' test.c -Werror
-Wno-error=builtin-macro-redefined
<command-line>:0:0: warning: "__DATE__" redefined [-Wbuiltin-macro-redefined]

manuel@gcc10:~$ ~/test1/210581/build/gcc/cc1 -D__DATE__='bla' test.c -Werror
-Wno-builtin-macro-redefined


Isn't this what you want?

Reply via email to