[vlc-devel] [PATCH] Fixed warnings on duplicate const modifiers

Maxim Bublis b at codemonkey.ru
Fri Nov 22 21:07:21 CET 2013


---
 src/misc/objects.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/misc/objects.c b/src/misc/objects.c
index af02b6b..0026ea8 100644
--- a/src/misc/objects.c
+++ b/src/misc/objects.c
@@ -437,10 +437,10 @@ vlc_object_t *vlc_object_find_name( vlc_object_t *p_this, const char *psz_name )
     /* This was officially deprecated on August 19 2009. For the convenience of
      * wannabe code janitors, this is the list of names that remain used
      * and unfixed since then. */
-    static const char const bad[][11] = { "adjust", "clone", "colorthres",
+    static const char bad[][11] = { "adjust", "clone", "colorthres",
         "erase", "extract", "gradient", "logo", "marq", "motionblur", "puzzle",
         "rotate", "sharpen", "transform", "v4l2", "wall" };
-    static const char const poor[][13] = { "invert", "magnify", "motiondetect",
+    static const char poor[][13] = { "invert", "magnify", "motiondetect",
         "psychedelic", "ripple", "wave" };
     if( bsearch( psz_name, bad, 15, 11, (void *)strcmp ) == NULL
      && bsearch( psz_name, poor, 6, 13, (void *)strcmp ) == NULL )
-- 
1.8.3.4 (Apple Git-47)




More information about the vlc-devel mailing list