test-dmap-server.c:86:3: error: ‘G_GNUC_FALLTHROUGH’ undeclared
$ make --silent
...
...
Making all in tests
CC test-dmap-server.o
test-dmap-server.c: In function ‘create_share’:
test-dmap-server.c:86:3: error: ‘G_GNUC_FALLTHROUGH’ undeclared (first use in this function); did you mean ‘G_GNUC_MALLOC’?
G_GNUC_FALLTHROUGH;
^~~~~~~~~~~~~~~~~~
G_GNUC_MALLOC
test-dmap-server.c:86:3: note: each undeclared identifier is reported only once for each function it appears in
make[3]: *** [Makefile:625: test-dmap-server.o] Error 1
make[2]: *** [Makefile:530: all] Error 2
make[1]: *** [Makefile:524: all-recursive] Error 1
make: *** [Makefile:431: all] Error 2
G_GNUC_FALLTHROUGH
requires glib-2.60
. The current Glib requirement for libdmapsharing-4.0
is glib-2.36
which is good. It will make the library work in more systems.
Is G_GNUC_FALLTHROUGH
really required in the code ? Can the code be worked around to work without this gcc
attribute ?