There's quite a bit of our code that fails compilation with
"gcc -pedantic -ansi" and should not be changed - like, LZ4 using
"long long" variables which C90 does not have. Be pragmatic.
trac #616
Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1465477232-25826-1-git-send-email-gert@greenie.muc.de>
URL: http://article.gmane.org/gmane.network.openvpn.devel/11882
Signed-off-by: Gert Doering <gert@greenie.muc.de>
| ... | ... |
@@ -1128,7 +1128,7 @@ fi |
| 1128 | 1128 |
if test "${enable_pedantic}" = "yes"; then
|
| 1129 | 1129 |
enable_strict="yes" |
| 1130 | 1130 |
CFLAGS="${CFLAGS} -pedantic"
|
| 1131 |
- test "${WIN32}" != "yes" && CFLAGS="${CFLAGS} -ansi"
|
|
| 1131 |
+ test "${WIN32}" != "yes" && CFLAGS="${CFLAGS} -std=c99"
|
|
| 1132 | 1132 |
fi |
| 1133 | 1133 |
if test "${enable_strict}" = "yes"; then
|
| 1134 | 1134 |
CFLAGS="${CFLAGS} -Wall -Wno-unused-parameter -Wno-unused-function"
|