Freeswitch will not compile with gcc 4.6
Looks like default of -Werror=unused-but-set-variable causes compilation failure.
Tried setting CFLAGS=“-Wno-unused-but-set-variable $CFLAGS” for all make commands, but still had issue. Also took a stab at just setting an alias for gcc to set same flag, but didn’t work. Exact error I’m hitting:
src/esl.c: In function ‘default_logger’:
src/esl.c:285:14: error: variable ‘fp’ set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors.
(from redmine: issue id 1002, created on 2012-02-12, closed on 2012-05-03)