help-gplusplus
[Top][All Lists]
Advanced

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

How to enable warnings for implicit casts to a narrower type?


From: Pete
Subject: How to enable warnings for implicit casts to a narrower type?
Date: Thu, 05 Aug 2004 11:15:21 GMT
User-agent: KNode/0.7.7

I'd like to have warnings for code like this:

void blah(char c) {}

int main() {
  int a = 500;
  blah(a); // want a warning here
  char b = a; // warning here would be nice too
}


Can this be achieved? -Wall and -Wconversion don't do it.
Thanks...


reply via email to

[Prev in Thread] Current Thread [Next in Thread]