]> granicus.if.org Git - graphviz/commitdiff
fix error: lvalue required as left operand of assignment
authorTony Kelman <tony@kelman.net>
Sat, 20 Dec 2014 01:35:59 +0000 (17:35 -0800)
committerTony Kelman <tony@kelman.net>
Fri, 16 Jan 2015 23:28:07 +0000 (15:28 -0800)
lib/gvc/regex_win32.c

index fdf78171bcbfe7b006ff555f0f9a565b78daa75a..2a4af04e0c4e7b0fde00943269db5b7dbcc6b1c3 100644 (file)
@@ -3645,19 +3645,19 @@ re_search_2(struct re_pattern_buffer *bufp,
 
 /* Free everything we malloc.  */
 #ifdef MATCH_MAY_ALLOCATE
-#define FREE_VAR(var) if (var) REGEX_FREE (var); var = NULL
+#define FREE_VAR(var) if ((void*) var) REGEX_FREE (var); var = NULL
 #define FREE_VARIABLES()                                                \
   do {                                                                  \
     REGEX_FREE_STACK (fail_stack.stack);                                \
-    FREE_VAR ((void*) regstart);                                        \
-    FREE_VAR ((void*) regend);                                          \
-    FREE_VAR ((void*) old_regstart);                                    \
-    FREE_VAR ((void*) old_regend);                                      \
-    FREE_VAR ((void*) best_regstart);                                   \
-    FREE_VAR ((void*) best_regend);                                     \
-    FREE_VAR ((void*) reg_info);                                        \
-    FREE_VAR ((void*) reg_dummy);                                       \
-    FREE_VAR ((void*) reg_info_dummy);                                  \
+    FREE_VAR (regstart);                                                \
+    FREE_VAR (regend);                                                  \
+    FREE_VAR (old_regstart);                                            \
+    FREE_VAR (old_regend);                                              \
+    FREE_VAR (best_regstart);                                           \
+    FREE_VAR (best_regend);                                             \
+    FREE_VAR (reg_info);                                                \
+    FREE_VAR (reg_dummy);                                               \
+    FREE_VAR (reg_info_dummy);                                          \
   } while (0)
 #else
 #define FREE_VARIABLES() ((void)0) /* Do nothing!  But inhibit gcc warning.  */