diff options
author | Corey Farrell <git@cfware.com> | 2017-08-03 12:30:31 -0400 |
---|---|---|
committer | Corey Farrell <git@cfware.com> | 2017-08-03 12:30:31 -0400 |
commit | d066758a4c70f0461762d67b7333f78d85843bba (patch) | |
tree | 96d7a6b16e5d9522eff5b13af82ff8eca3cc53b6 /main/Makefile | |
parent | ed1bce956e30d9f8ec8defcbae33ea3217dd8fb6 (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/Makefile')
-rw-r--r-- | main/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/Makefile b/main/Makefile index 2521585d4..18f102506 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 |