public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] include/config.mk: add -Wold-style-definition
@ 2014-02-19 13:17 Alexey Kodanev
  2014-02-19 14:59 ` chrubis
  0 siblings, 1 reply; 2+ messages in thread
From: Alexey Kodanev @ 2014-02-19 13:17 UTC (permalink / raw)
  To: ltp-list; +Cc: vasily.isaenko, Alexey Kodanev

Make compiler warn about old-style prototypes which were commonly
used before ANSI C. Using old-style function definition could result
in bugs that are not tracked down at compile time.

Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com>
---
 include/mk/config.mk.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/mk/config.mk.in b/include/mk/config.mk.in
index acdbdb5..c83d08c 100644
--- a/include/mk/config.mk.in
+++ b/include/mk/config.mk.in
@@ -66,7 +66,7 @@ DEBUG_CXXFLAGS		?= $(DEBUG_CFLAGS)
 OPT_CFLAGS		?= -O2 -fno-strict-aliasing -pipe
 OPT_CXXFLAGS		?= $(OPT_CFLAGS)
 
-WCFLAGS			?= -Wall -W
+WCFLAGS			?= -Wall -W -Wold-style-definition
 WCXXFLAGS		?= $(WCFLAGS)
 
 LDFLAGS			+= $(WLDFLAGS)
-- 
1.7.1


------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

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

end of thread, other threads:[~2014-02-19 14:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-19 13:17 [LTP] [PATCH] include/config.mk: add -Wold-style-definition Alexey Kodanev
2014-02-19 14:59 ` chrubis

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