Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++ - about Warning 2: possible unintended assignment
int *ptr=...; while(*ptr++); .. At the while loop dmc gives "Warning 2: possible unintended assignment". what code is generated in this case? I mean will it work as it is expected or the optimizer will remove it, or something else. best regards rado Oct 08 2002
In article <anvhit$2um5$1 digitaldaemon.com>, radopas hotmail.com says...int *ptr=...; while(*ptr++); .. At the while loop dmc gives "Warning 2: possible unintended assignment". Oct 08 2002
bw schrieb...while(*ptr++); .. At the while loop dmc gives "Warning 2: possible unintended assignment". Oct 09 2002
<radopas hotmail.com> wrote in message news:anvhit$2um5$1 digitaldaemon.com...int *ptr=...; while(*ptr++); .. At the while loop dmc gives "Warning 2: possible unintended assignment". what code is generated in this case? I mean will it work as it is expected or the optimizer will remove it, or something else. Oct 08 2002
|