Daniel Gustafsson b5d182d037 checksrc: enable strict mode and warnings
Enable strict and warnings mode for checksrc to ensure we aren't missing
anything due to bugs in the checking code. This uncovered a few things
which are all fixed in this commit:

* several variables were used uninitialized
* several variables were not defined in the correct scope
* the whitelist filehandle was read even if the file didn't exist
* the enable_warn() call when a disable counter had expired was passing
  incorrect variables, but since the checkwarn() call is unlikely to hit
  (the counter is only decremented to zero on actual ignores) it didn't
  manifest a problem.

Closes #3090
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
Reviewed-by: Marcel Raad <Marcel.Raad@teamviewer.com>
2018-10-05 13:29:37 +02:00
..
2018-09-23 22:24:02 +00:00
2018-08-09 12:37:19 +02:00
2018-06-11 11:14:48 +02:00
2018-09-23 22:24:02 +00:00
2018-01-05 23:34:30 -05:00
2018-06-21 09:44:04 +02:00
2018-06-03 12:14:45 +00:00
2018-09-23 22:24:02 +00:00
2018-06-11 11:14:48 +02:00
2018-09-23 22:24:02 +00:00
2018-09-13 08:26:37 +02:00
2018-09-23 22:24:02 +00:00
2018-09-22 11:58:10 +02:00
2018-09-06 09:17:25 +02:00
2018-09-23 22:24:02 +00:00
2018-09-23 22:24:02 +00:00
2018-09-08 15:36:11 +02:00
2018-09-23 22:24:02 +00:00
2018-09-22 11:58:10 +02:00
2018-09-23 22:24:02 +00:00
2018-09-23 22:24:02 +00:00
2018-09-22 11:58:10 +02:00
2018-06-11 11:14:48 +02:00
2018-09-06 09:17:17 +02:00
2018-09-23 22:24:02 +00:00
2018-06-27 13:49:18 +02:00
2018-09-23 22:24:02 +00:00
2018-09-06 09:17:17 +02:00
2018-09-23 22:24:02 +00:00
2018-09-23 22:24:02 +00:00
2018-09-25 10:30:08 +02:00
2018-09-23 22:24:02 +00:00
2018-09-22 11:58:10 +02:00
2018-09-23 22:24:02 +00:00
2018-09-23 22:24:02 +00:00
2018-09-22 11:58:10 +02:00
2018-09-23 22:24:02 +00:00
2018-09-23 22:24:02 +00:00
2018-09-23 22:24:02 +00:00
2018-09-23 22:24:02 +00:00
2018-09-23 22:24:02 +00:00
2018-09-23 22:24:02 +00:00
2018-09-23 22:24:02 +00:00
2018-09-14 18:48:35 +00:00
2018-09-14 18:48:35 +00:00
2018-06-27 13:49:18 +02:00
2018-07-28 22:36:15 +02:00
2018-02-23 23:29:01 +00:00
2018-06-23 22:50:31 +02:00
2018-09-23 22:24:02 +00:00
2018-02-23 23:29:01 +00:00
2018-03-19 19:22:42 +01:00
2018-09-23 22:24:02 +00:00
2017-10-25 18:48:05 +02:00
2018-07-20 22:58:42 +02:00
2018-09-22 11:58:10 +02:00
2018-06-11 11:14:48 +02:00
2018-09-23 22:24:02 +00:00
2018-05-16 02:21:06 -04:00
2018-09-23 22:24:02 +00:00
2018-06-11 11:14:48 +02:00
2018-09-23 22:24:02 +00:00
2018-06-12 16:00:27 +02:00
2018-06-12 16:00:27 +02:00
2018-09-23 22:24:02 +00:00
2018-09-23 22:24:02 +00:00
2018-09-22 11:58:10 +02:00
2018-07-30 17:59:36 +02:00
2018-09-22 11:58:10 +02:00
2018-09-23 22:24:02 +00:00
2018-09-23 22:24:02 +00:00
2018-09-23 22:24:02 +00:00
2018-09-23 22:24:02 +00:00
2018-09-04 14:44:47 +00:00
2018-09-01 10:40:42 +02:00
2018-08-21 18:53:43 +02:00
2018-09-23 22:24:02 +00:00
2018-09-22 11:58:10 +02:00
2018-09-23 22:24:02 +00:00
2018-09-24 16:38:11 +02:00
2018-09-23 22:24:02 +00:00
2018-09-22 11:58:10 +02:00