Makefile: WARNINGS: add -Wformat-y2k
authorFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 29 May 2012 08:42:34 +0000 (10:42 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 29 May 2012 13:19:31 +0000 (15:19 +0200)
-Wformat-y2k
  If -Wformat is specified, also warn about "strftime" formats
  which may yield only a two-digit year.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Makefile.inc

index ec95015..dc54539 100644 (file)
@@ -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