freeswitch-stable: fix incompatible pointer type 339/head
authorSebastian Kemper <sebastian_ml@gmx.net>
Thu, 21 Jun 2018 19:09:49 +0000 (21:09 +0200)
committerSebastian Kemper <sebastian_ml@gmx.net>
Thu, 21 Jun 2018 19:09:54 +0000 (21:09 +0200)
commit2c490b7fd12012561ad76ef4b757805ee10fbdb6
tree76c26864f29065cf02fab92f2540d81c21755992
parent02928ab9c86acfb41db35228f2e66a926f91c94e
freeswitch-stable: fix incompatible pointer type

Currently compiles fail with:

  CC       libfreeswitch_la-switch_regex.lo
src/switch_regex.c: In function 'switch_regex_compile':
src/switch_regex.c:40:9: error: return from incompatible pointer type [-Werror=incompatible-pointer-types]
  return pcre_compile(pattern, options, errorptr, erroroffset, tables);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Makefile:2100: recipe for target 'libfreeswitch_la-switch_regex.lo' failed
make[5]: *** [libfreeswitch_la-switch_regex.lo] Error 1

Fix cherry-picked from upstream.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
net/freeswitch-stable/Makefile
net/freeswitch-stable/patches/350-fix-pcre-pointer-type.patch [new file with mode: 0644]