Latest tests/libntp/msyslog.c quirks on NetBSD and FreeBSD

Hal Murray hmurray at megapathdsl.net
Sun Dec 6 01:06:21 UTC 2015


NetBSD 6.1.5:

../tests/libntp/msyslog.c:103:2: warning: spurious trailing '%' in format
../tests/libntp/msyslog.c:103:2: warning: embedded '\0' in format
../tests/libntp/msyslog.c:103:2: warning: spurious trailing '%' in format
../tests/libntp/msyslog.c:103:2: warning: embedded '\0' in format
../tests/libntp/msyslog.c:104:2: warning: spurious trailing '%' in format
../tests/libntp/msyslog.c:94:9: error: #pragma GCC diagnostic not allowed 
inside
 functions
../tests/libntp/msyslog.c:95:9: error: #pragma GCC diagnostic not allowed 
inside
 functions
../tests/libntp/msyslog.c:96:9: error: #pragma GCC diagnostic not allowed 
inside
 functions
../tests/libntp/msyslog.c:97:9: error: #pragma GCC diagnostic not allowed 
inside
 functions
../tests/libntp/msyslog.c:109:9: error: #pragma GCC diagnostic not allowed 
insid
e functions

It works on NetBSD 7.0


FreeBSD 9.3

../tests/libntp/msyslog.c:103: warning: spurious trailing '%' in format
../tests/libntp/msyslog.c:103: warning: embedded '\0' in format
../tests/libntp/msyslog.c:103: warning: spurious trailing '%' in format
../tests/libntp/msyslog.c:103: warning: embedded '\0' in format
../tests/libntp/msyslog.c:104: warning: spurious trailing '%' in format
../tests/libntp/msyslog.c:94: error: #pragma GCC diagnostic not allowed 
inside f
unctions
../tests/libntp/msyslog.c:95: error: #pragma GCC diagnostic not allowed 
inside f
unctions
../tests/libntp/msyslog.c:96: error: #pragma GCC diagnostic not allowed 
inside f
unctions
../tests/libntp/msyslog.c:97: error: #pragma GCC diagnostic not allowed 
inside f
unctions
../tests/libntp/msyslog.c:109: error: #pragma GCC diagnostic not allowed 
inside
functions

FreeBSD 10.2/clang:

../tests/libntp/msyslog.c:95:32: warning: unknown warning group 
'-Wformat-contai
ns-nul', ignored [-Wunknown-pragmas]
../tests/libntp/msyslog.c:96:32: warning: unknown warning group '-Wformat=', 
ign
ored [-Wunknown-pragmas]



-- 
These are my opinions.  I hate spam.





More information about the devel mailing list