public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] open_posix_testsuite: Replace old -W commandline argument
@ 2024-05-13 20:47 Detlef Riekenberg via ltp
  2024-05-14  8:25 ` Cyril Hrubis
  2024-05-14 18:59 ` Petr Vorel
  0 siblings, 2 replies; 6+ messages in thread
From: Detlef Riekenberg via ltp @ 2024-05-13 20:47 UTC (permalink / raw)
  To: LTP; +Cc: Joerg Vehlow

The Open Posix testsuite calls the compiler with the old
gcc commandline argument "-W", but that breaks other compiler

This patch renames the old "-W" to "-Wextra" (as suggested by LTP mailing list members)

Reference:
https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html

gcc 3.4 renamed "-W" to "-Wextra" in 2004:
https://gcc.gnu.org/gcc-3.4/changes.html

--
Regards ... Detlef

Signed-off-by: Detlef Riekenberg <wine.dev@web.de>
---
 testcases/open_posix_testsuite/include/mk/config.mk.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testcases/open_posix_testsuite/include/mk/config.mk.in b/testcases/open_posix_testsuite/include/mk/config.mk.in
index c9a4b5c5a..20422e0f1 100644
--- a/testcases/open_posix_testsuite/include/mk/config.mk.in
+++ b/testcases/open_posix_testsuite/include/mk/config.mk.in
@@ -14,4 +14,4 @@ testdir_rel := @testdir@
 testdir     := ${prefix}/${testdir_rel}
 testdir_bin := ${testdir}/bin

-CFLAGS  += -std=c99 -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -W -Wall
+CFLAGS  += -std=c99 -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -Wall -Wextra
--
2.40.1



-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-05-15  9:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-13 20:47 [LTP] [PATCH] open_posix_testsuite: Replace old -W commandline argument Detlef Riekenberg via ltp
2024-05-14  8:25 ` Cyril Hrubis
2024-05-14 12:15   ` Petr Vorel
2024-05-14 13:02     ` Joerg Vehlow
2024-05-14 18:59 ` Petr Vorel
     [not found]   ` <trinity-41dc0eb8-c7cf-4f51-9e88-2b2daa5bd204-1715766325023@msvc-mesg-web002>
2024-05-15  9:51     ` [LTP] " Petr Vorel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox