]> git.ipfire.org Git - thirdparty/systemd.git/commit
Silence two "unused function af_lookup" warnings (#5222)
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 4 Feb 2017 15:25:20 +0000 (10:25 -0500)
committerGitHub <noreply@github.com>
Sat, 4 Feb 2017 15:25:20 +0000 (10:25 -0500)
commitcfe5b07106e0b2049de542a4bdcf3334b0352bbe
tree53bc3fdb10720c9d33c3613ea24ba0f8de832aae
parentc37fb55bd856a62757e0b6673116959e645f85cf
Silence two "unused function af_lookup" warnings (#5222)

Gcc7 is smarter about detecting unused functions and detects those two functions
which are unused in tests. But gperf generates them for us, so let's instead of removing
tell gcc that we know they might be unused in the test code.

In file included from ../src/test/test-af-list.c:29:0:
./src/basic/af-from-name.h:140:1: warning: ‘lookup_af’ defined but not used [-Wunused-function]
 lookup_af (register const char *str, register size_t len)
 ^~~~~~~~~
In file included from ../src/test/test-arphrd-list.c:29:0:
./src/basic/arphrd-from-name.h:125:1: warning: ‘lookup_arphrd’ defined but not used [-Wunused-function]
 lookup_arphrd (register const char *str, register size_t len)
 ^~~~~~~~~~~~~
src/test/test-af-list.c
src/test/test-arphrd-list.c