[Sumover-dev] [svn commit] r4180 - vic/branches/cc/video

sumover-dev at cs.ucl.ac.uk sumover-dev at cs.ucl.ac.uk
Sun Jun 22 20:45:09 BST 2008


Author: soohyunc
Date: Sun Jun 22 20:45:03 2008
New Revision: 4180

Modified:
   vic/branches/cc/video/grabber-v4l2.cpp

Log:
fixed warning message with gcc-4.x:
"warning: deprecated conversion from string constant to ‘char*’"

how i did?
changed char * to const char * to fix this warning message at the omplication
time


Modified: vic/branches/cc/video/grabber-v4l2.cpp
==============================================================================
--- vic/branches/cc/video/grabber-v4l2.cpp	(original)
+++ vic/branches/cc/video/grabber-v4l2.cpp	Sun Jun 22 20:45:03 2008
@@ -120,7 +120,7 @@
         void packed422_to_planar420(char *, const char*);
         void jpeg_to_planar420(char *, const char*);
 
-        void setctrl(int, int, char *, int);
+        void setctrl(int, int, const char *, int);
 
         struct v4l2_capability   capability;
         struct v4l2_input        *inputs;
@@ -1162,7 +1162,7 @@
         allocref();
 }
 
-void V4l2Grabber::setctrl(int val, int cid, char *controlname, int reset)
+void V4l2Grabber::setctrl(int val, int cid, const char *controlname, int reset)
 {
         struct v4l2_queryctrl qctrl;
         struct v4l2_control ctrl;



More information about the Sumover-dev mailing list