Linus Torvalds
7e74e235bb
gcc-9: don't warn about uninitialized btrfs extent_type variable
...
The 'extent_type' variable does seem to be reliably initialized, but
it's _very_ non-obvious, since there's a "goto next" case that jumps
over the normal initialization. That will then always trigger the
"start >= extent_end" test, which will end up never falling through to
the use of that variable.
But the code is certainly not obvious, and the compiler warning looks
reasonable. Make 'extent_type' an int, and initialize it to an invalid
negative value, which seems to be the common pattern in other places.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2019-05-01 12:19:20 -07:00
..
2018-12-17 14:51:44 +01:00
2019-02-25 14:13:17 +01:00
2019-02-25 14:13:24 +01:00
2018-04-12 16:29:46 +02:00
2019-02-25 14:13:39 +01:00
2018-04-12 16:29:46 +02:00
2018-12-17 14:51:43 +01:00
2018-12-17 14:51:50 +01:00
2018-04-12 16:29:46 +02:00
2019-03-08 14:12:17 -08:00
2019-02-25 14:13:32 +01:00
2019-02-25 14:19:23 +01:00
2019-03-12 14:53:57 -07:00
2018-04-12 16:29:46 +02:00
2018-10-15 17:23:38 +02:00
2018-10-15 17:23:33 +02:00
2019-02-25 14:13:39 +01:00
2019-02-25 14:13:39 +01:00
2019-02-25 14:13:41 +01:00
2018-12-17 14:51:45 +01:00
2018-10-15 17:23:25 +02:00
2019-03-12 10:04:01 -07:00
2018-12-17 14:51:43 +01:00
2018-10-15 17:23:25 +02:00
2018-04-12 16:29:46 +02:00
2019-03-12 14:53:57 -07:00
2019-02-25 14:13:36 +01:00
2019-02-25 14:13:21 +01:00
2019-02-25 14:13:21 +01:00
2019-03-19 14:12:36 +01:00
2019-04-25 14:17:38 +02:00
2019-02-25 14:13:17 +01:00
2018-11-06 16:42:32 +01:00
2018-04-12 16:29:46 +02:00
2018-12-17 14:51:37 +01:00
2018-05-28 18:07:36 +02:00
2018-04-12 16:29:51 +02:00
2018-08-06 13:12:43 +02:00
2018-04-12 16:29:46 +02:00
2019-05-01 12:19:20 -07:00
2019-03-28 18:10:27 +01:00
2018-04-12 16:29:55 +02:00
2019-02-25 14:13:28 +01:00
2019-02-25 14:13:28 +01:00
2019-02-25 14:13:32 +01:00
2018-03-26 15:09:39 +02:00
2018-04-12 16:29:46 +02:00
2019-04-25 14:17:38 +02:00
2018-12-17 14:51:43 +01:00
2018-04-12 16:29:51 +02:00
2018-08-06 13:12:41 +02:00
2018-04-20 19:18:16 +02:00
2019-04-04 17:57:53 +02:00
2018-04-12 16:29:46 +02:00
2019-03-19 14:12:31 +01:00
2019-02-25 14:13:39 +01:00
2019-03-26 10:32:13 -07:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:46 +02:00
2018-12-17 14:51:45 +01:00
2019-02-25 14:13:27 +01:00
2018-04-12 16:29:46 +02:00
2019-02-25 14:19:23 +01:00
2019-02-27 14:08:47 +01:00
2019-02-25 14:13:41 +01:00
2019-01-03 18:57:57 -08:00
2018-04-12 16:29:46 +02:00
2018-08-06 13:12:43 +02:00
2019-02-25 14:13:33 +01:00
2018-12-17 14:51:37 +01:00
2018-12-17 14:51:43 +01:00
2019-03-13 17:13:48 +01:00
2018-12-17 14:51:43 +01:00
2018-12-17 14:51:50 +01:00
2018-04-12 16:29:46 +02:00
2019-02-25 14:13:27 +01:00
2019-03-20 19:53:39 +01:00
2018-12-17 14:51:31 +01:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-05-30 16:46:53 +02:00
2019-03-13 17:14:27 +01:00
2019-02-25 14:13:30 +01:00
2018-12-17 14:51:49 +01:00
2018-04-12 16:29:46 +02:00
2019-02-25 14:13:32 +01:00
2019-02-27 17:45:04 +01:00