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.
Go to file
Travis Cross b874048efc Handle gcc's overzealous unused-result warning
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
2014-08-22 20:13:39 +00:00
build just do the sounds too 2014-07-22 15:19:52 -05:00
clients/flex
cmake_modules
conf FS-6719 #resolve 2014-08-01 16:55:53 -05:00
debian FS-6689 #comment next time please attach a diff #resolve 2014-07-25 07:31:13 -05:00
docs Describe how to hard-wrap text in Emacs 2014-08-21 20:37:08 +00:00
dtd
fscomm
htdocs Fix line endings per .gitattributes 2014-08-08 15:24:42 +00:00
html5/verto tweak some cid display issues 2014-08-19 03:25:28 +05:00
libs Return NULL from sub_alloc for zero size 2014-08-22 02:47:04 +00:00
scripts Revert changes from FS-5719, You'll have to make these changes yourself locally if you want these types of certificates 2014-07-18 07:52:26 -05:00
src Adding the ability to add a radius param when a channel variable is not set in mod_xml_radius 2014-08-21 23:17:23 -07:00
support-d
w32 FS-6578 #comment fixed #resolve 2014-07-19 18:06:01 +02:00
web
.gitattributes Treat *-min.js files as minified for git 2014-08-01 16:59:11 +00:00
.gitignore Use system portaudio library 2014-07-17 21:15:53 +00:00
.mailmap map emails 2014-08-01 14:47:38 -05:00
acinclude.m4
bootstrap.sh we have already removed the module from tree, no need to bootstrap/configure the lib still, or to have it in tree at all for that matter 2014-07-18 14:15:26 -04:00
cc.sh
cluecon2_small.tmpl
cluecon2.tmpl
cluecon_small.tmpl
cluecon.tmpl
configure.ac Handle gcc's overzealous unused-result warning 2014-08-22 20:13:39 +00:00
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 Remove js and mod_spidermonkey from Windows build 2014-07-19 12:47:44 +02:00
Freeswitch.2008.express.unsupported.sln Remove js and mod_spidermonkey from Windows build 2014-07-19 12:47:44 +02:00
Freeswitch.2008.sln.debug.bat
Freeswitch.2008.sln.release.bat
Freeswitch.2008.unsupported.sln Remove js and mod_spidermonkey from Windows build 2014-07-19 12:47:44 +02:00
Freeswitch.2010.express.sln FS-6696 VS2010 Express fixes for pa and v8 2014-08-17 13:28:06 -06:00
Freeswitch.2010.sln Remove js and mod_spidermonkey from Windows build 2014-07-19 12:47:44 +02:00
Freeswitch.2012.sln Remove js and mod_spidermonkey from Windows build 2014-07-19 12:47:44 +02:00
Freeswitch.2012.sln.bat
freeswitch.spec
INSTALL
Makefile.am Use system portaudio library 2014-07-17 21:15:53 +00:00
swig_common.i