convert double to int

I use gcc 4.4.3 for my work. Is there any flag i can give to g++ which will throw a warning on implicit conversion between double and int. I would like a warning for a code of the following form
1
2
double a = 10.3245;
int b = a;


I have tried using -Wall and -pedantic. They both do not throw any warnings for this piece of code. M$ 2010 express gives a warning for such a code. Is there anyway i can enable this in g++ ?

Thanks.
-Wconversion
Great, it worked ! thanks a lot.
Topic archived. No new replies allowed.