Dimitry Andric
6c01c0e0c6
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
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D7777
2016-09-04 17:23:10 +00:00
..
2016-08-25 13:33:32 +00:00
2016-05-03 18:05:43 +00:00
2016-08-26 19:23:17 +00:00
2016-06-06 00:35:45 +00:00
2016-07-22 02:11:49 +00:00
2016-06-02 17:51:29 +00:00
2016-09-04 17:23:10 +00:00
2016-01-25 06:33:15 +00:00
2015-12-08 10:50:03 +00:00
2015-12-08 10:50:03 +00:00
2016-08-09 02:16:21 +00:00
2015-12-16 23:39:27 +00:00
2015-12-16 23:39:27 +00:00
2016-05-03 18:05:43 +00:00
2016-06-02 17:51:29 +00:00
2016-06-23 21:07:15 +00:00
2016-03-31 00:53:23 +00:00
2016-07-28 18:39:30 +00:00
2016-06-01 10:14:04 +00:00
2016-02-03 21:56:51 +00:00
2015-08-29 06:58:30 +00:00
2015-08-29 06:58:30 +00:00
2016-07-27 20:34:09 +00:00
2016-06-21 13:48:49 +00:00
2016-08-18 22:59:10 +00:00
2016-08-18 22:59:00 +00:00
2015-12-17 14:41:30 +00:00
2016-06-01 10:14:04 +00:00
2016-05-26 21:40:13 +00:00
2015-07-31 09:02:28 +00:00
2016-01-09 09:34:39 +00:00
2016-06-09 05:48:34 +00:00
2016-08-13 16:45:14 +00:00
2016-05-25 22:16:11 +00:00
2016-04-29 20:22:01 +00:00
2016-07-06 14:09:49 +00:00
2016-06-21 13:48:49 +00:00
2016-08-21 18:55:30 +00:00
2016-06-21 13:48:49 +00:00
2016-05-03 18:05:43 +00:00
2016-08-18 22:59:00 +00:00
2016-06-01 10:14:04 +00:00
2016-05-03 18:05:43 +00:00
2016-06-01 10:14:04 +00:00
2016-04-30 14:25:00 +00:00
2016-07-16 07:48:01 +00:00
2016-05-02 20:56:11 +00:00
2016-05-02 20:56:11 +00:00
2016-07-17 13:14:51 +00:00
2016-04-07 09:10:34 +00:00
2016-07-17 13:14:51 +00:00
2016-08-10 17:19:33 +00:00
2016-04-07 09:34:41 +00:00
2016-08-26 07:49:23 +00:00
2015-06-17 15:20:14 +00:00
2016-05-02 20:56:11 +00:00
2016-04-07 09:34:41 +00:00
2016-08-22 01:45:29 +00:00
2016-01-30 12:58:38 +00:00
2016-08-07 12:51:13 +00:00
2016-05-02 20:56:11 +00:00
2016-08-06 12:51:07 +00:00
2016-08-06 12:33:15 +00:00
2016-04-15 15:46:41 +00:00
2016-07-19 09:48:08 +00:00
2016-05-12 16:34:59 +00:00
2016-05-09 16:35:05 +00:00
2016-02-17 18:04:22 +00:00
2016-07-17 13:33:35 +00:00
2016-08-22 00:40:45 +00:00
2016-06-01 10:14:04 +00:00
2016-04-07 09:10:34 +00:00
2016-08-24 06:22:53 +00:00
2016-04-23 09:15:58 +00:00
2016-03-11 23:18:06 +00:00
2016-08-11 23:52:24 +00:00
2015-12-24 19:09:48 +00:00
2016-08-26 17:48:54 +00:00
2015-12-11 06:22:58 +00:00
2015-12-11 06:22:58 +00:00
2016-08-25 13:33:32 +00:00
2016-08-25 13:33:32 +00:00
2016-08-02 06:36:47 +00:00
2016-01-27 00:45:46 +00:00
2016-05-30 03:31:37 +00:00
2016-07-06 16:17:13 +00:00
2016-07-06 16:17:13 +00:00
2016-01-09 09:34:39 +00:00
2016-05-03 18:05:43 +00:00
2016-08-16 15:11:46 +00:00
2016-08-16 15:11:46 +00:00
2016-01-27 00:48:05 +00:00
2016-08-16 15:17:36 +00:00
2016-08-16 12:40:56 +00:00
2016-06-23 00:32:58 +00:00
2016-08-16 15:11:46 +00:00
2016-08-25 13:33:32 +00:00
2016-01-22 02:07:48 +00:00
2016-06-02 17:51:29 +00:00
2016-08-22 15:27:37 +00:00
2016-06-01 10:14:04 +00:00