summaryrefslogtreecommitdiffstats
path: root/sbin/mknod
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2016-09-07 19:25:08 +0000
committerdim <dim@FreeBSD.org>2016-09-07 19:25:08 +0000
commit2d624862a74900689dfe1678642d9d5c45645f23 (patch)
tree63251e4bf4a0cffb0f78cb59c0bb41778e1f1433 /sbin/mknod
parent801b22dfa05f578ce25b3267f3e22a05fafab0bd (diff)
downloadFreeBSD-src-2d624862a74900689dfe1678642d9d5c45645f23.zip
FreeBSD-src-2d624862a74900689dfe1678642d9d5c45645f23.tar.gz
MFC r305389:
With clang 3.9.0, compiling sys/netinet/igmp.c results in the following warning: sys/netinet/igmp.c:546:21: error: implicit conversion from 'int' to 'char' changes value from 148 to -108 [-Werror,-Wconstant-conversion] p->ipopt_list[0] = IPOPT_RA; /* Router Alert Option */ ~ ^~~~~~~~ sys/netinet/ip.h:153:19: note: expanded from macro 'IPOPT_RA' #define IPOPT_RA 148 /* router alert */ ^~~ This is because ipopt_list is an array of char, so IPOPT_RA is wrapped to a negative value. It would be nice to change ipopt_list to an array of u_char, but it changes the signature of the public struct ipoption, so add an explicit cast to suppress the warning. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D7777
Diffstat (limited to 'sbin/mknod')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud