avoid compilation error from -Wshadow gcc option 66/138466/1 accepted/tizen/unified/20170713.153355 submit/tizen/20170712.121302
authorMyoungJune Park <mj2004.park@samsung.com>
Wed, 12 Jul 2017 08:32:03 +0000 (17:32 +0900)
committerMyoungJune Park <mj2004.park@samsung.com>
Wed, 12 Jul 2017 08:34:50 +0000 (17:34 +0900)
- if arg name of an inline function at a header file is identical to
  other simbol, gcc make warnings and turn it into failing build.

Change-Id: I73390d0d55574089d1a045be821edcbfc2a7a8f6
Signed-off-by: MyoungJune Park <mj2004.park@samsung.com>
glib/glib-autocleanups.h

index 6355f75..c96e1bc 100644 (file)
@@ -29,10 +29,10 @@ g_autoptr_cleanup_generic_gfree (void *p)
 }
 
 static inline void
-g_autoptr_cleanup_gstring_free (GString *string)
+g_autoptr_cleanup_gstring_free (GString *__string__)
 {
-  if (string)
-    g_string_free (string, TRUE);
+  if (__string__)
+    g_string_free (__string__, TRUE);
 }
 
 /* If adding a cleanup here, please also add a test case to