summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorCorey Farrell <git@cfware.com>2017-08-02 15:16:43 -0400
committerCorey Farrell <git@cfware.com>2017-08-02 18:10:57 -0400
commit4b03eb5c3822765a49b7ab4b05294ce7c012522b (patch)
tree78391dbd1c3d36d507608cb8b89772ca3ee9ec52 /main
parent2be8d91c0f5802a1f9c87b35f8f419e0db1b22d8 (diff)
Fix compile error for old versions of GCC.
Use -Wno-format-truncation only if supported by compiler. ASTERISK-27171 #close Change-Id: Iac0aed7a5bcaa16c21b7d62c4e4678d244c4ccb6
Diffstat (limited to 'main')
-rw-r--r--main/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/Makefile b/main/Makefile
index d816443d0..e64aace26 100644
--- a/main/Makefile
+++ b/main/Makefile
@@ -140,7 +140,7 @@ endif
$(CMD_PREFIX) rm $@.fix
ast_expr2f.o: _ASTCFLAGS+=-Wno-unused
-cdr.o: _ASTCFLAGS+=-Wno-format-truncation
+cdr.o: _ASTCFLAGS+=$(AST_NO_FORMAT_TRUNCATION)
testexpr2: ast_expr2f.c ast_expr2.c ast_expr2.h
$(CC) -g -c -Iinclude -DSTANDALONE ast_expr2f.c