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 <[email protected]>
---
 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to