Linus Torvalds
d2d9821170
Fix warning about unused variables
...
Commit 810903bdb9db ("Import: pass a dive table to process_imported_dives()")
introduced the variables
struct dive *old_dive, *merged;
into process_imported_dives(), but never used them. It seems to be an
artifact of having split the function to use the try_to_merge_into()
helper function (that has those same variable names and _does_ use
them), but forgetting the original variables from the pre-split case.
Gcc understandably warns about it:
core/divelist.c: In function ‘process_imported_dives’:
core/divelist.c:1351:26: warning: unused variable ‘merged’ [-Wunused-variable]
struct dive *old_dive, *merged;
^~~~~~
core/divelist.c:1351:15: warning: unused variable ‘old_dive’ [-Wunused-variable]
struct dive *old_dive, *merged;
^~~~~~~~
and the trivial fix is to just remove that line that declares the stale
and unused variables.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2018-10-08 00:10:29 +03:00
..
2018-09-25 16:01:39 +02:00
2018-08-23 05:16:38 -07:00
2018-08-27 22:10:38 -07:00
2018-09-30 08:09:37 -07:00
2018-02-26 08:52:34 +01:00
2018-09-10 16:26:49 -07:00
2017-12-06 02:23:47 +01:00
2018-09-11 17:25:00 -07:00
2018-09-10 16:26:49 -07:00
2018-09-25 14:59:14 -07:00
2018-10-06 19:47:06 -07:00
2017-05-31 21:53:00 -07:00
2018-09-01 11:31:18 -07:00
2018-07-18 02:09:15 +03:00
2016-04-04 22:33:58 -07:00
2018-04-24 17:54:08 -07:00
2017-04-29 13:32:55 -07:00
2018-05-21 12:48:04 -07:00
2017-04-29 13:32:55 -07:00
2018-09-23 11:49:30 -07:00
2018-08-11 11:14:22 -07:00
2018-09-28 15:06:00 -07:00
2018-08-23 14:41:01 -07:00
2018-08-23 05:16:38 -07:00
2018-08-23 05:16:38 -07:00
2018-05-24 08:34:14 -07:00
2018-05-14 10:13:39 -07:00
2017-05-04 10:50:15 -07:00
2017-05-04 10:50:15 -07:00
2018-08-27 22:10:38 -07:00
2018-10-06 19:47:06 -07:00
2018-10-06 19:47:06 -07:00
2018-08-15 16:11:39 -07:00
2018-06-17 06:53:13 +09:00
2018-10-08 00:10:29 +03:00
2018-10-06 19:47:06 -07:00
2018-10-07 17:50:51 +03:00
2017-04-29 13:32:55 -07:00
2018-07-04 05:33:31 +08:00
2018-10-07 23:40:37 +03:00
2017-10-17 06:12:07 -04:00
2018-06-04 08:50:10 -07:00
2018-09-29 15:23:25 -07:00
2018-10-08 00:10:29 +03:00
2018-09-29 15:23:25 -07:00
2018-08-23 05:21:08 -07:00
2018-01-31 14:47:26 +01:00
2018-02-17 19:38:52 -08:00
2017-04-29 13:32:55 -07:00
2018-09-28 15:06:00 -07:00
2018-09-28 15:06:00 -07:00
2018-04-09 11:29:43 -07:00
2018-04-09 11:29:43 -07:00
2018-08-23 05:16:38 -07:00
2018-08-23 05:16:38 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2018-06-24 20:31:14 +02:00
2018-06-24 20:31:14 +02:00
2018-09-10 16:26:49 -07:00
2018-09-10 16:26:49 -07:00
2018-09-24 07:20:25 -07:00
2018-09-24 07:20:25 -07:00
2018-07-28 15:31:25 -07:00
2018-07-28 15:31:25 -07:00
2018-05-24 08:34:14 -07:00
2018-10-04 07:37:28 +02:00
2018-09-28 15:06:00 -07:00
2018-08-23 05:16:38 -07:00
2018-05-27 23:18:01 +03:00
2018-06-15 17:45:33 -07:00
2018-08-27 22:10:38 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2018-10-06 19:47:06 -07:00
2018-10-08 00:10:29 +03:00
2018-10-06 19:47:06 -07:00
2018-09-11 15:38:20 -07:00
2018-09-24 18:51:21 +02:00
2018-03-05 16:23:55 +01:00
2018-04-10 08:18:32 -07:00
2018-09-25 14:59:14 -07:00
2018-07-14 08:32:30 +02:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00
2018-05-14 10:13:39 -07:00
2018-09-26 12:13:20 -07:00
2018-09-11 15:38:20 -07:00
2018-08-30 13:32:09 -07:00
2018-08-23 05:16:38 -07:00
2018-08-23 05:16:38 -07:00
2018-09-12 14:17:55 -07:00
2018-01-10 16:45:42 +01:00
2018-01-10 16:45:42 +01:00
2018-09-25 15:58:17 +02:00
2018-09-10 14:23:59 -07:00
2018-08-23 05:16:38 -07:00
2018-10-08 00:10:29 +03:00
2018-10-08 00:10:29 +03:00
2018-09-11 17:22:58 -07:00
2018-09-09 18:44:40 -07:00
2018-08-25 11:49:47 -07:00
2018-07-15 09:38:12 -07:00
2018-10-08 00:10:29 +03:00
2018-09-11 15:38:20 -07:00
2018-09-07 11:03:30 -07:00
2017-04-29 13:32:55 -07:00
2018-09-13 08:16:54 -07:00
2018-10-08 00:10:29 +03:00
2016-04-04 22:33:58 -07:00
2016-04-04 22:33:58 -07:00
2018-05-30 21:47:07 -07:00
2018-10-07 17:50:51 +03:00
2018-10-07 17:50:51 +03:00
2017-04-29 13:32:55 -07:00
2018-05-14 10:13:39 -07:00
2018-05-14 10:13:39 -07:00
2018-09-25 15:58:17 +02:00
2017-11-25 07:41:09 -08:00
2017-05-27 11:07:20 -07:00
2017-04-29 13:32:55 -07:00
2017-10-07 08:16:53 -07:00
2017-10-04 08:05:09 -07:00
2017-04-29 13:32:55 -07:00
2018-10-06 19:47:06 -07:00
2018-05-14 10:13:39 -07:00
2017-04-29 13:32:55 -07:00
2018-05-18 21:27:37 +03:00
2018-08-27 22:10:38 -07:00
2017-04-29 13:32:55 -07:00
2016-04-04 22:33:58 -07:00
2018-07-28 15:31:25 -07:00
2018-07-28 15:31:25 -07:00
2017-04-29 13:32:55 -07:00
2018-09-03 13:29:03 -07:00
2018-07-30 13:55:23 -07:00
2018-07-30 13:55:23 -07:00
2017-04-29 13:32:55 -07:00
2018-05-14 10:13:39 -07:00
2017-04-29 13:32:55 -07:00
2018-09-25 14:59:14 -07:00
2018-09-25 14:59:14 -07:00