Project

General

Profile

Cleanup #1034

Constant comparison warnings from xlC compiler

Added by Jim Phillips over 3 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
04/13/2016
Due date:
% Done:

0%


Description

ck.C:2692:22: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
if (e->getSrcPe()<0 || e->getSrcPe()>=CkNumPes()+CkNumNodes()) return 0;
~~~~~~~~~~~~^

ckarray.C:267:12: warning: address of array 'info.listenerData' will always evaluate to 'true'
[-Wpointer-bool-conversion]
if (info.listenerData) {
~ ~~~~~^~~~~~~~~~~

ckarrayreductionmgr.C:133:19: warning: comparison of constant \-1 with expression of type 'unsigned short' is
always true [-Wtautological-constant-out-of-range-compare]
if (m->userFlag!=-1)
~~~~~~~~~^ ~~

History

#1 Updated by Eric Bohm about 3 years ago

  • Assignee set to Seonmyeong Bak

#2 Updated by Seonmyeong Bak almost 3 years ago

Can you write down some details of the environment where you found this bug? I tried to build charm++ on ANL Mira(BG/Q) by using xlc but I didn't encounter this bug.
The following is the build option I tried on Mira.

./build charm++ pamilrts-bluegeneq xlc --with-production.

#3 Updated by Jim Phillips almost 3 years ago

It would have been an SMP build.

#4 Updated by Sam White over 1 year ago

  • Subject changed from constant comparison warnings from xlC compiler to Constant comparison warnings from xlC compiler
  • Tracker changed from Bug to Cleanup
  • Assignee deleted (Seonmyeong Bak)

#5 Updated by Sam White over 1 year ago

A Charmworks intern is looking into this.

#6 Updated by Sam White over 1 year ago

  • Status changed from New to Closed

He said these warnings have been taken care of or the code they were in was removed.

Also available in: Atom PDF