gcc compiler warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi simple qeuery ...

why does gcc give a warning:   warning: value computed is not used

for...  ptr++;

when the value is actually used!

code segment...
do {
       oldval=*ptr;//make local copy
*ptr++; // scroll 1 ahead in ring buffer if(isHeader(&oldval) && cntnumber > 1 ) //skip first header word. check for header words inside data
           break;
       cntnumber += 1;
}while( !isTrailer( &oldval ) && cntnumber < totalchannels ); // copy until the trailer

Regards
L


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux