From 23834be661b900b5fb211af1b72e2ddab1e58d84 Mon Sep 17 00:00:00 2001 From: Santa Zhang Date: Tue, 25 Mar 2014 17:54:04 -0400 Subject: [PATCH] use -pedantic instead of -Wpedantic For backwards compatibility. Older version of g++ (those on travis CI) only accepts -pedantic flag. --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 12cfd3e..6ada537 100644 --- a/readme.md +++ b/readme.md @@ -21,7 +21,7 @@ So, I'm certain I'm wrong on even more points. This is a constant work-in-progre No excuses here. Always develop and compile with warnings on. It turns out, though, that `-Wall` and `-Wextra` actually don't enable "all" warnings. There are a few others that can be really helpful: ``` make -CFLAGS += -Wall -Wextra -Wpedantic \ +CFLAGS += -Wall -Wextra -pedantic \ -Wformat=2 -Wno-unused-parameter -Wshadow \ -Wwrite-strings -Wstrict-prototypes -Wold-style-definition \ -Wredundant-decls -Wnested-externs -Wmissing-include-dirs