mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-25 14:06:27 +00:00
Fix compile error for old versions of GCC.
Use -Wno-format-truncation only if supported by compiler. ASTERISK-27171 #close Change-Id: Iac0aed7a5bcaa16c21b7d62c4e4678d244c4ccb6
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user