[Olsr-dev] [PATCH v1 04/12] Makefile: WARNINGS: add -Wformat-y2k

Ferry Huberts (spam-protected)
Tue May 29 15:59:33 CEST 2012


From: Ferry Huberts <(spam-protected)>

-Wformat-y2k
  If -Wformat is specified, also warn about "strftime" formats
  which may yield only a two-digit year.

Signed-off-by: Ferry Huberts <(spam-protected)>
---
 Makefile.inc |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/Makefile.inc b/Makefile.inc
index ec95015..dc54539 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -91,6 +91,7 @@ WARNINGS +=	-Wsequence-point
 WARNINGS +=	-Wcast-align
 WARNINGS +=	-Wdouble-promotion
 WARNINGS +=	-Wformat-security
+WARNINGS +=	-Wformat-y2k
 # the following 2 do not work yet and need more work on it
 #WARNINGS +=	-Wconversion
 #WARNINGS +=	-Wredundant-decls
-- 
1.7.7.6





More information about the Olsr-dev mailing list