forked from Mirrors/freeswitch
FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from proprietary telecom switches to a versatile software implementation that runs on any commodity hardware. From a Raspberry PI to a multi-core server, FreeSWITCH can unlock the telecommunications potential of any device.
b874048efc
Modern static analyzers warn when a variable is set but not used. GCC warns when the result of a function marked as `__attribute__((warn_unused_result))` is not set to some variable, even when the function is cast to `(void)`, which is the recognized way of indicating the intent to ignore the result. We treat all warnings as errors. The combination of behaviors here makes it difficult if we really don't care about the result of the function; the obvious workarounds are precluded. GCC's maintainers don't consider this to be a bug: Why do you think this is a bug? warn_unused_result is for cases where "not checking the result is either a security problem or always a bug". https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25509#c1 GLIBC however marks functions like `read` and `write` with this attribute. While it certainly in most cases is correct to act on their return value, in some cases we really just don't care. So when we see that we're building with GCC, and that we're building with all warnings enabled, we'll just pass -Wno-unused-result to disable the warning. ref: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25509 ref: https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html |
||
---|---|---|
build | ||
clients/flex | ||
cmake_modules | ||
conf | ||
debian | ||
docs | ||
dtd | ||
fscomm | ||
htdocs | ||
html5/verto | ||
libs | ||
scripts | ||
src | ||
support-d | ||
w32 | ||
web | ||
.gitattributes | ||
.gitignore | ||
.mailmap | ||
acinclude.m4 | ||
bootstrap.sh | ||
cc.sh | ||
cluecon2_small.tmpl | ||
cluecon2.tmpl | ||
cluecon_small.tmpl | ||
cluecon.tmpl | ||
configure.ac | ||
devel-bootstrap.sh | ||
erlang.spec | ||
freeswitch-config-rayo.spec | ||
freeswitch-sounds-en-us-callie.spec | ||
freeswitch-sounds-music.spec | ||
freeswitch-sounds-ru-RU-elena.spec | ||
freeswitch-sounds-sv-se-jakob.spec | ||
Freeswitch.2005.unsupported.sln | ||
Freeswitch.2008.express.unsupported.sln | ||
Freeswitch.2008.sln.debug.bat | ||
Freeswitch.2008.sln.release.bat | ||
Freeswitch.2008.unsupported.sln | ||
Freeswitch.2010.express.sln | ||
Freeswitch.2010.sln | ||
Freeswitch.2012.sln | ||
Freeswitch.2012.sln.bat | ||
freeswitch.spec | ||
INSTALL | ||
Makefile.am | ||
swig_common.i |