Skip to content

Commit 188a69f

Browse files
committed
Don't require -Wextra goto-gcc flag for warnings to be treated as errors
The new version is not completely equivalent to how it would work in gcc. In gcc, when both -Werror and -Wno-error are given (possibly multiple times), the flag that was given last "wins". However we currently don't have a way of knowing the order of options in cmdlinet.
1 parent 823782c commit 188a69f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/goto-cc/gcc_mode.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,6 @@ int gcc_modet::doit()
364364
compilet compiler(cmdline,
365365
gcc_message_handler,
366366
cmdline.isset("Werror") &&
367-
cmdline.isset("Wextra") &&
368367
!cmdline.isset("Wno-error"));
369368

370369
if(cmdline.isset("version"))

0 commit comments

Comments
 (0)