freeswitch-stable: workaround for build failures when gcc 7 is used 261/head
authorSebastian Kemper <sebastian_ml@gmx.net>
Sat, 3 Feb 2018 18:30:34 +0000 (19:30 +0100)
committerSebastian Kemper <sebastian_ml@gmx.net>
Sat, 3 Feb 2018 19:19:20 +0000 (20:19 +0100)
commit957ff8198240f8f4e9f1585ecd1c469cb7af3b44
tree4a7ea9bf364814ad83c3e96ea357fe18fd975da9
parent5111568c380cb1da55997c7db2e4e76ae58e33c8
freeswitch-stable: workaround for build failures when gcc 7 is used

When gcc 7 is used, -Werror=format-truncation finds snprintf() calls in
mod_cdr_mongodb.c and suspects that they may result in truncation. As a
result the build fails.

Work around this by adding -Wno-error=format-truncation to CFLAGS when
gcc support this.

JIRA-10939 has been raised upstream to follow up on this.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
net/freeswitch-stable/patches/320-workaround-format-truncation-error-in-mod_cdr_mongodb.patch [new file with mode: 0644]