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 unl
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 The new jquery.tmpl wants tmpl() instead of render() 2011-08-22 16:14:23 +02:00
cmake_modules Completely unbundle libedit 2014-03-24 12:39:59 +00:00
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 xmllint --dtdvalid freeswitch_dialplan.dtd /usr/local/freeswitch/conf/default_context.xml >>/dev/null 2007-11-01 14:59:32 +00:00
fscomm update copyright header for 2014 2014-02-12 12:08:56 -06:00
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 FS-4939 2014-07-09 09:04:17 -05:00
w32 FS-6578 #comment fixed #resolve 2014-07-19 18:06:01 +02:00
web add back empty dirs 2010-04-01 21:00:45 -04:00
.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
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 merge some changes from joshrivers branch 2009-11-18 15:29:19 +00:00
Freeswitch.2008.sln.release.bat rename 2009-11-18 19:42:00 +00:00
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 FS-6102 --resolve 2014-01-17 16:17:57 -06:00
INSTALL test 2013-04-04 20:52:47 -05:00
Makefile.am Use system portaudio library 2014-07-17 21:15:53 +00:00
acinclude.m4 Require libcurl as a system dependency 2014-03-20 21:15:29 +00:00
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 add smaller banner for teeny tiny terminals 2012-09-24 14:59:09 -05:00
cluecon.tmpl update cc banner 2013-09-16 22:59:26 +05:00
cluecon2.tmpl update cc banner 2013-09-16 22:59:26 +05:00
cluecon2_small.tmpl add smaller banner for teeny tiny terminals 2012-09-24 14:59:09 -05:00
cluecon_small.tmpl add smaller banner for teeny tiny terminals 2012-09-24 14:59:09 -05:00
configure.ac Handle gcc's overzealous unused-result warning 2014-08-22 20:13:39 +00:00
devel-bootstrap.sh Changed permissions for devel-bootstrap.sh 2010-10-13 14:18:38 -07:00
erlang.spec ci/centos: add erlang module support files 2012-03-24 05:15:11 +00:00
freeswitch-config-rayo.spec freeswitch-config-rayo.spec remove some dependencies to high def audio and specific fs version 2014-06-10 15:02:15 -04:00
freeswitch-sounds-en-us-callie.spec fix sox dependancy 2012-05-15 10:18:14 -05:00
freeswitch-sounds-music.spec --resolve FS-4209 2012-05-15 10:20:52 -05:00
freeswitch-sounds-ru-RU-elena.spec centos: rework CentOS spec files 2012-03-24 04:52:58 +00:00
freeswitch-sounds-sv-se-jakob.spec FS-5045 2014-02-02 12:33:37 +01:00
freeswitch.spec FS-6563 --resolve update the freeswitch.spec file for building on Centos6, drop spidermonkey and add other requirements 2014-06-03 14:33:16 -05:00
swig_common.i FS-6061 --resolve 2013-12-23 22:43:06 +05:00