implicit cast from unsigned long to unsigned int gives no warning with -Wall (64 bits arch)

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

 



>From GCC 4.3 onwards you can use -Wconversion.

test.c: In function 'main':
test.c:16: warning: conversion to 'unsigned int' from 'long unsigned
int' may alter its value

Previous versions have a Wconversion option but it won't do what you
want even if you think it does. Read more here:
http://gcc.gnu.org/wiki/NewWconversion

Cheers,

Manuel.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux