[MPlayer-cvslog] r30989 - trunk/m_option.h

diego subversion at mplayerhq.hu
Sat Apr 3 13:06:58 CEST 2010


Author: diego
Date: Sat Apr  3 13:06:57 2010
New Revision: 30989

Log:
Mark m_option struct member as const.

This fixes many warnings similar to:
cfg-mplayer.h:368: warning: initialization discards qualifiers from pointer target type

Modified:
   trunk/m_option.h

Modified: trunk/m_option.h
==============================================================================
--- trunk/m_option.h	Sat Apr  3 09:12:32 2010	(r30988)
+++ trunk/m_option.h	Sat Apr  3 13:06:57 2010	(r30989)
@@ -280,7 +280,7 @@ struct m_option {
    *  use the priv field but this was inherited from older versions of the
    *  config code.
    */
-  void *p;
+  const void *p;
 
   /// Option type.
   const m_option_type_t* type;


More information about the MPlayer-cvslog mailing list