From 6ce764ef040f4d64ac3f690fb3cd0cba34df86b6 Mon Sep 17 00:00:00 2001
From: Andreas Mohr <and@gmx.li>
Date: Tue, 6 Dec 2016 11:01:49 +0000
Subject: [PATCH] (lib.c) Cleanup comma compiler warning
Found by Clang 3.9.0.
lib.c:237:41: error: possible misuse of comma operator here [-Werror,-Wcomma]
coord_cache_free (view->coord_cache), view->coord_cache = NULL;
^
lib.c:237:5: note: cast expression to void to silence warning
coord_cache_free (view->coord_cache), view->coord_cache = NULL;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Andreas Mohr <and@gmx.li>
---
src/viewer/lib.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/viewer/lib.c b/src/viewer/lib.c
index c7d8084..4a12273 100644
a
|
b
|
mcview_done (WView * view) |
234 | 234 | mcview_close_datasource (view); |
235 | 235 | /* the growing buffer is freed with the datasource */ |
236 | 236 | |
237 | | coord_cache_free (view->coord_cache), view->coord_cache = NULL; |
| 237 | coord_cache_free (view->coord_cache); |
| 238 | view->coord_cache = NULL; |
238 | 239 | |
239 | 240 | if (view->converter == INVALID_CONV) |
240 | 241 | view->converter = str_cnv_from_term; |