To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=100223
                 Issue #|100223
                 Summary|GCC warnings: suggest a space before '; ' or explicit 
                        |braces around empty body in 'for' statement
               Component|utilities
                 Version|OOO310m4
                Platform|PC
                     URL|
              OS/Version|Linux
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|PATCH
                Priority|P3
            Subcomponent|code
             Assigned to|mh
             Reported by|gokcen





------- Additional comments from [email protected] Mon Mar 16 07:26:49 
+0000 2009 -------
Hi,

There are hundreds of this GCC warning during compilation of OOO310m4:

build/current/solver/310/unxlngi6.pro/inc/stl/stl/_list.c:85: warning: 
suggest a space before ';' or explicit braces around empty body in 'for' 
statement

The patch below should fix this. (I'm sorry, I couldn't find where to add the
patch as a file in the issue tracker)


--- solver/310/unxlngi6.pro/inc/stl/stl/_list.c.orig·   2009-03-15
19:57:10.000000000 +0200
+++ solver/310/unxlngi6.pro/inc/stl/stl/_list.c·2009-03-15 19:57:30.000000000 
+0200
@@ -82,7 +82,7 @@
 {
   iterator __i = begin();
   size_type __len = 0;
-  for ( ; __i != end() && __len < __new_size; ++__i, ++__len);
+  for ( ; __i != end() && __len < __new_size; ++__i, ++__len) ;
·
   if (__len == __new_size)
     erase(__i, end());
~

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to