Dimitry Andric
3128fa9a5a
With clang 3.9.0, compiling ppbus(4) results in the following warnings:
...
sys/dev/ppbus/ppb_1284.c:296:46: error: implicit conversion from 'int'
to 'char' changes value from 144 to -112 [-Werror,-Wconstant-conversion]
if ((error = do_peripheral_wait(bus, SELECT | nBUSY, 0))) {
~~~~~~~~~~~~~~~~~~ ~~~~~~~^~~~~~~
sys/dev/ppbus/ppb_1284.c:785:48: error: implicit conversion from 'int'
to 'char' changes value from 240 to -16 [-Werror,-Wconstant-conversion]
if (do_1284_wait(bus, nACK | SELECT | PERROR | nBUSY,
~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
sys/dev/ppbus/ppb_1284.c:786:29: error: implicit conversion from 'int'
to 'char' changes value from 240 to -16 [-Werror,-Wconstant-conversion]
nACK | SELECT | PERROR | nBUSY)) {
~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
This is because nBUSY is 0x80, so the plain char argument is wrapped to
a negative value. Fix this in a minimal fashion, by using uint8_t in a
few places.
Reviewed by: emaste
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D7771
2016-09-03 13:48:44 +00:00
..
2016-05-03 03:41:25 +00:00
2016-05-03 03:41:25 +00:00
2016-05-22 13:58:32 +00:00
2016-08-17 09:52:09 +00:00
2016-04-21 19:57:40 +00:00
2016-05-03 03:41:25 +00:00
2016-04-21 20:30:38 +00:00
2016-04-26 15:03:15 +00:00
2016-04-21 19:57:40 +00:00
2016-05-03 03:41:25 +00:00
2016-05-03 03:41:25 +00:00
2016-08-20 09:13:14 +00:00
2016-04-21 19:48:28 +00:00
2016-08-09 19:41:46 +00:00
2016-08-22 03:28:06 +00:00
2016-04-19 23:37:24 +00:00
2016-05-03 03:41:25 +00:00
2016-05-14 18:44:30 +00:00
2016-03-29 12:19:46 +00:00
2016-05-22 13:58:32 +00:00
2016-05-03 03:41:25 +00:00
2016-05-24 13:57:23 +00:00
2016-03-15 05:17:29 +00:00
2016-05-03 17:11:33 +00:00
2016-05-03 03:41:25 +00:00
2016-08-09 19:41:46 +00:00
2016-05-18 23:39:31 +00:00
2016-08-09 19:32:06 +00:00
2016-05-03 03:41:25 +00:00
2016-06-01 05:15:11 +00:00
2016-09-01 13:38:46 +00:00
2016-08-09 19:32:06 +00:00
2016-05-04 06:24:10 +00:00
2016-05-26 16:48:20 +00:00
2016-08-16 21:32:05 +00:00
2016-08-09 19:41:46 +00:00
2016-04-26 23:09:47 +00:00
2016-05-03 03:41:25 +00:00
2016-05-03 03:41:25 +00:00
2016-06-03 18:54:16 +00:00
2016-08-01 16:26:08 +00:00
2016-02-04 22:39:27 +00:00
2016-05-24 01:42:21 +00:00
2016-02-27 03:38:01 +00:00
2016-05-03 03:41:25 +00:00
2016-05-22 13:58:32 +00:00
2016-05-03 03:41:25 +00:00
2016-07-06 14:09:49 +00:00
2016-05-03 03:41:25 +00:00
2016-02-27 03:38:01 +00:00
2016-03-18 01:28:41 +00:00
2016-05-03 03:41:25 +00:00
2016-07-11 16:56:51 +00:00
2016-09-02 00:21:24 +00:00
2016-04-26 15:03:15 +00:00
2016-05-03 03:41:25 +00:00
2016-04-21 20:30:38 +00:00
2016-05-25 01:23:19 +00:00
2016-05-03 03:41:25 +00:00
2016-05-03 03:41:25 +00:00
2016-09-03 13:33:28 +00:00
2016-07-10 18:28:15 +00:00
2016-08-15 11:24:30 +00:00
2016-05-03 03:41:25 +00:00
2016-02-20 01:32:58 +00:00
2016-04-21 19:57:40 +00:00
2016-02-01 17:41:21 +00:00
2016-05-04 06:24:51 +00:00
2016-05-03 03:41:25 +00:00
2016-08-09 19:41:46 +00:00
2015-12-11 05:27:56 +00:00
2016-04-21 19:57:40 +00:00
2016-07-10 18:28:15 +00:00
2016-05-03 03:41:25 +00:00
2016-07-23 14:38:09 +00:00
2016-05-04 23:00:57 +00:00
2016-08-19 10:52:39 +00:00
2016-05-03 03:41:25 +00:00
2016-05-27 22:14:39 +00:00
2016-08-12 16:05:53 +00:00
2016-05-10 10:21:03 +00:00
2016-07-21 15:48:41 +00:00
2016-05-03 03:41:25 +00:00
2016-08-19 10:52:39 +00:00
2016-05-03 03:41:25 +00:00
2016-05-03 03:41:25 +00:00
2016-02-27 03:34:01 +00:00
2016-05-04 01:43:07 +00:00
2016-05-03 03:41:25 +00:00
2016-05-03 03:41:25 +00:00
2016-05-03 03:41:25 +00:00
2016-08-03 16:52:00 +00:00
2016-09-02 06:23:28 +00:00
2016-05-03 03:41:25 +00:00
2016-05-30 09:05:24 +00:00
2016-02-27 03:38:01 +00:00
2016-03-24 23:24:00 +00:00
2016-05-11 17:38:09 +00:00
2016-05-03 03:41:25 +00:00
2016-08-19 10:52:39 +00:00
2016-05-03 03:41:25 +00:00
2016-08-23 10:40:53 +00:00
2016-09-01 23:56:02 +00:00
2016-03-22 06:24:52 +00:00
2016-05-03 03:41:25 +00:00
2016-05-19 22:19:35 +00:00
2016-07-06 20:48:42 +00:00
2016-08-25 05:22:53 +00:00
2016-08-30 19:20:26 +00:00
2016-08-25 05:22:53 +00:00
2016-01-07 21:16:44 +00:00
2016-05-20 11:56:16 +00:00
2016-04-11 10:53:25 +00:00
2016-05-03 03:41:25 +00:00
2016-08-27 10:04:48 +00:00
2016-05-26 11:12:36 +00:00
2016-08-09 19:32:06 +00:00
2016-08-09 19:32:06 +00:00
2016-09-01 01:08:18 +00:00
2016-05-03 03:41:25 +00:00
2016-07-26 13:36:28 +00:00
2016-08-30 12:36:14 +00:00
2016-05-18 23:39:31 +00:00
2016-05-03 03:41:25 +00:00
2016-05-04 06:23:49 +00:00
2016-04-29 22:14:11 +00:00
2016-03-18 01:28:41 +00:00
2016-03-09 19:36:25 +00:00
2015-12-26 17:22:02 +00:00
2016-08-29 01:59:18 +00:00
2016-05-03 03:41:25 +00:00
2016-07-23 18:16:40 +00:00
2016-05-03 03:41:25 +00:00
2016-08-22 13:43:25 +00:00
2016-05-03 03:41:25 +00:00
2016-05-13 15:15:54 +00:00
2016-05-03 03:41:25 +00:00
2016-07-12 19:34:10 +00:00
2016-07-12 19:34:10 +00:00
2016-08-09 15:52:17 +00:00
2016-06-02 12:26:55 +00:00
2016-02-27 03:38:01 +00:00
2016-08-09 15:51:11 +00:00
2016-05-03 03:41:25 +00:00
2016-05-19 22:28:46 +00:00
2016-05-12 03:36:49 +00:00
2016-08-09 15:56:33 +00:00
2016-05-03 03:41:25 +00:00
2016-04-20 01:17:18 +00:00
2016-01-27 02:23:54 +00:00
2016-05-03 03:41:25 +00:00
2016-09-01 01:08:18 +00:00
2016-04-19 23:37:24 +00:00
2016-05-03 03:41:25 +00:00
2016-05-03 03:41:25 +00:00
2016-07-30 21:06:59 +00:00
2016-07-19 19:19:03 +00:00
2016-07-28 22:40:31 +00:00
2016-07-24 08:35:45 +00:00
2016-06-03 15:33:21 +00:00
2016-04-10 23:07:00 +00:00
2016-08-28 21:31:21 +00:00
2016-05-09 19:28:22 +00:00
2016-05-17 12:52:31 +00:00
2016-05-03 03:41:25 +00:00
2016-02-27 03:38:01 +00:00
2016-04-21 15:38:28 +00:00
2016-05-20 00:03:22 +00:00
2016-05-03 03:41:25 +00:00
2016-08-22 01:19:05 +00:00
2016-05-03 03:41:25 +00:00
2016-05-17 12:52:31 +00:00
2016-09-03 13:48:44 +00:00
2016-03-18 01:28:41 +00:00
2016-03-18 01:28:41 +00:00
2016-07-21 16:34:56 +00:00
2016-03-02 03:26:56 +00:00
2016-05-03 03:41:25 +00:00
2016-08-17 02:40:17 +00:00
2016-06-07 04:51:50 +00:00
2016-03-02 03:26:56 +00:00
2016-06-08 02:37:23 +00:00
2016-06-09 14:44:05 +00:00
2016-05-03 03:41:25 +00:00
2016-04-19 23:37:24 +00:00
2016-05-03 03:41:25 +00:00
2016-04-21 19:40:10 +00:00
2016-02-27 03:38:01 +00:00
2016-04-20 14:47:16 +00:00
2016-06-20 22:45:19 +00:00
2016-05-03 03:41:25 +00:00
2016-03-02 03:26:56 +00:00
2016-05-26 02:55:41 +00:00
2016-01-01 17:56:52 +00:00
2016-05-03 03:41:25 +00:00
2016-06-09 12:33:53 +00:00
2016-04-21 15:38:28 +00:00
2016-06-04 19:53:47 +00:00
2016-05-03 03:41:25 +00:00
2016-05-03 03:41:25 +00:00
2016-05-03 03:41:25 +00:00
2016-03-01 17:47:32 +00:00
2016-05-03 03:41:25 +00:00
2016-05-03 03:41:25 +00:00
2016-08-09 19:32:06 +00:00
2016-04-19 23:37:24 +00:00
2016-05-26 07:02:20 +00:00
2016-01-27 02:23:54 +00:00
2016-04-19 23:37:24 +00:00
2016-04-23 20:29:55 +00:00
2016-06-01 14:03:13 +00:00
2016-09-01 19:18:26 +00:00
2016-04-10 23:07:00 +00:00
2016-05-03 03:41:25 +00:00
2016-05-03 03:41:25 +00:00
2016-08-09 19:32:06 +00:00
2016-05-03 03:41:25 +00:00
2016-08-30 01:58:49 +00:00
2016-02-19 03:37:56 +00:00
2016-05-03 03:41:25 +00:00
2016-08-09 15:50:03 +00:00
2016-05-03 03:41:25 +00:00
2016-08-28 21:31:21 +00:00
2016-07-20 22:05:44 +00:00
2016-08-30 03:11:07 +00:00
2016-08-11 21:13:58 +00:00
2016-04-19 23:37:24 +00:00
2016-07-18 14:40:13 +00:00
2016-08-19 10:52:39 +00:00
2016-03-01 17:47:32 +00:00
2016-08-18 16:22:40 +00:00
2016-02-18 01:24:10 +00:00
2016-05-03 03:41:25 +00:00
2016-05-03 03:41:25 +00:00
2016-05-02 16:47:28 +00:00
2016-05-20 08:58:06 +00:00
2016-04-30 14:41:18 +00:00
2016-05-02 16:47:28 +00:00
2016-05-03 03:41:25 +00:00
2016-08-05 15:48:56 +00:00
2016-04-19 15:36:18 +00:00
2016-05-03 03:41:25 +00:00