------- Comment #4 from pinskia at gcc dot gnu dot org  2008-10-03 20:41 -------
I have a patch which I am testing right now:
Index: c-typeck.c
===================================================================
--- c-typeck.c  (revision 140850)
+++ c-typeck.c  (working copy)
@@ -3994,7 +3994,7 @@ convert_for_assignment (tree type, tree 
         pedwarn (LOCATION, OPT, AS);                                     \
         break;                                                           \
       case ic_init:                                                      \
-        pedwarn (LOCATION, OPT, IN);                                     \
+        pedwarn_init (LOCATION, OPT, IN);                                \
         break;                                                           \
       case ic_return:                                                    \
         pedwarn (LOCATION, OPT, RE);                                     \

--- CUT ---
This does not fix C++ though, that is going to be harder.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-10-03 20:41:52
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37724

Reply via email to