[LTP] [PATCH] open_posix_testsuite: Remove inclomplete warning commandline argument

Petr Vorel pvorel@suse.cz
Mon May 13 12:47:31 CEST 2024


Hi all,

> Hi,

> Am 5/9/2024 um 11:21 AM schrieb Cyril Hrubis:
> > Hi!
> >> The Open Posix testsuite calls the compiler with the commandline argument
> >> "-W", but that is not a supported gcc warning option
> >> and breaks other compiler.

> >> This patch removes the broken "-W" commandline argument.

> > Isn't -W old name for -Wextra?
> exactly that is what gcc and clang documentation states.

> On top of that

> Additionally it is nothing introduced by 8071ba7, but already by
> ff4e69314c1 back in 2013 by no one else but you Cyril ;)

Yes, it should be:

Fixes: ff4e69314 ("open_posix_testsuite: Enable warnings.")

> I guess changing it to -Wextra wouldn't hurt and is what gcc recommends.

+1 for replacing -W with -Wextra


FYI if we are interested what is behind -Wextra

https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-W
https://github.com/llvm-mirror/clang/blob/master/include/clang/Basic/DiagnosticGroups.td

Kind regards,
Petr

> Jörg


More information about the ltp mailing list