I apologize for not knowing much about GCC bug filing, like the triplet info
requested above. I am using a GCC 4.3.4 with the following configuration:
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.3.4/./configure --prefix=/usr
Thread model: posix
gcc version 4.3.4 (GCC)

It's compiled on a Mandriva 2007.0 Linux system with glibc-2.4-7 from Mandriva.

The compiler flags used in compiling this were -O3 -funroll-loops.

The following statement has the purpose of scanning some array elements until
the condition isn't met, and then the variable i has the info I want. So this
is not a statement with no effect because it's found something. Below the
statement are two console lines showing GCC's error message.

  if ((i > prunecap) && (deep > 1))  /* Trim lemons early */
    {  /* remove with slope test, saving at least prunecap */
       for (i; (((max - Tree[i].score) > i) && (i >= margin)); i--);
    }

gnuchess.c: In function ‘BackPrune’:
gnuchess.c:1021: warning: statement with no effect

Thought you'd like to know.


-- 
           Summary: false "statement has no effect" message
           Product: gcc
           Version: 4.3.4
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jrt at worldlinc dot net
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: I586-Mandriva-Linux?
GCC target triplet: i686-pc-linux-gnu


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

Reply via email to