Code generated by gperf does not have complete initialisers for all
struct elements, producing a warning from gcc. Suppress this warning for
code from gperf.
Change-Id: Ie61eb42b293041e43c62df702123f725f6116a9c
If the gperf dependency isn't present then people
seem to miss that it's not available. Admittedly,
the error message isn't entirely obvious:
| Makefile:135: .depend: No such file or directory
| ../utils/const_str_hash < sdp.c > sdp.strhash.c
| open2: exec of gperf -t -E -l -c -t -I -H __csh_hash -N __csh_lookup_raw failed at ../utils/const_str_hash line 37.
Change-Id: I15edcd0517e88c690be246dc628cb55e25297dd0
Closes: https://github.com/sipwise/rtpengine/issues/718
To avoid repeated strcmp()s and make use of switch()'s optimised binary
lookup, we employ a second build step that preprocesses certain .c files
and uses gperf to substitute pseudomacros with their respective constant
hash value.
Change-Id: Id89c4728a0fc7aa911691d4dd1ba8e7b3916a983