Build failure on Fedora 22
cc -Wall -Wshadow -Wmissing-prototypes -Wpointer-arith -Wwrite-strings -Wcast-align -Wbad-function-cast -Wmissing-format-attribute -Wformat=2 -Wformat-security -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -pedantic -std=gnu99 -D_GNU_SOURCE -include ../../mozjs/usr/include/js-17.0/js/RequiredDefines.h -I/usr/include/nspr -I../../mozjs/usr/include/js-17.0 -DJSSCRIPTTYPE=JSScript -Wno-multichar -ggdb -g -D__NO_STRING_INLINE -fstack-protector-all -O0 -Werror -DBUILD_DATE=\"20151006\" -DBUILD_USER=\"Andy\" -DVER_MAJ=\"2\" -DVER_MIN=\"17\" -DVER_TWK=\"7b62781\" -DHOMEPATH=\"/usr/lib/mw\" -DLOGDIR=\"/var/log/mw\" -DSTATEDIR=\"/var/lib/mw\" -DMSGDIR=\"/var/run/mw\" -MMD -I.. -c -o main.o main.c main.c: In function ‘main’: main.c:570:3: error: ‘CPPFunction’ is deprecated [-Werror=deprecated-declarations] rl_attempted_completion_function= (CPPFunction *)complete_entry; ^ main.c:571:3: error: ‘CPFunction’ is deprecated [-Werror=deprecated-declarations] rl_completion_entry_function= (CPFunction *)dummy_list; ^ main.c:572:3: error: ‘Function’ is deprecated [-Werror=deprecated-declarations] rl_directory_rewrite_hook= (Function *)expand_script_dir; ^ cc1: all warnings being treated as errors ../../Makefile.common:104: recipe for target 'main.o' failed make[2]: *** [main.o] Error 1 make[2]: Leaving directory '/home/andy/src/mw/src/client' Makefile:6: recipe for target 'build' failed make[1]: *** [build] Error 2 make[1]: Leaving directory '/home/andy/src/mw/src' Makefile:5: recipe for target 'build' failed make: *** [build] Error 2
Workaround is to add -Wno-deprecated-declarations to CFLAGS