[llvm-commits] [llvm] r51115 - in /llvm/trunk/lib/CodeGen/SelectionDAG: ScheduleDAG.cpp ScheduleDAGRRList.cpp SelectionDAGISel.cpp

Dale Johannesen dalej at apple.com
Wed May 14 13:51:17 PDT 2008


On May 14, 2008, at 1:43 PM, Chris Lattner wrote:

> On May 14, 2008, at 1:07 PM, Evan Cheng wrote:
>> URL: http://llvm.org/viewvc/llvm-project?rev=51115&view=rev
>> Log:
>> Silence some compiler warnings.
>
> This introduces new compiler warnings "isNew computation has no side
> effects".  How about "isNew = isNew;" ?  We use this idiom in other
> places,


gcc doesn't warn about that, but it should.

How about
(void)isNew;

or __attribute__((used))




More information about the llvm-commits mailing list