This fixes build warnings found by GCC 8. In some cases format truncation is intentional so the warning is just suppressed. ASTERISK-27824 #close Change-Id: I724f146cbddba8b86619d4c4a9931ee877995c84
30 lines
912 B
Makefile
30 lines
912 B
Makefile
#
|
|
# Asterisk -- An open source telephony toolkit.
|
|
#
|
|
# Makefile for dialplan functions
|
|
#
|
|
# Copyright (C) 2005-2006, Digium, Inc.
|
|
#
|
|
# This program is free software, distributed under the terms of
|
|
# the GNU General Public License
|
|
#
|
|
|
|
-include $(ASTTOPDIR)/menuselect.makeopts $(ASTTOPDIR)/menuselect.makedeps
|
|
|
|
MODULE_PREFIX=func
|
|
MENUSELECT_CATEGORY=FUNCS
|
|
MENUSELECT_DESCRIPTION=Dialplan Functions
|
|
|
|
all: _all
|
|
|
|
include $(ASTTOPDIR)/Makefile.moddir_rules
|
|
|
|
# the SPRINTF() function in func_sprintf accepts format specifiers
|
|
# and thus passes them to snprintf() as non-literal strings; the compiler
|
|
# can't check the string and arguments to ensure they match, so this
|
|
# warning must be disabled; for safety reasons, SPRINTF() is kept in
|
|
# a separate module so that as little code as possible is left unchecked
|
|
func_sprintf.o: _ASTCFLAGS+=-Wno-format-nonliteral
|
|
|
|
func_groupcount.o: _ASTCFLAGS+=$(AST_NO_FORMAT_TRUNCATION)
|