Re: missing g++ warning about bad allocation

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

 



"Martin Ettl" <ettl.martin@xxxxxx> writes:

> Sorry for beeing so eager on this example, but i have compiled the testcase with following command:
>
> g++ -W -Wall -Wextra -Wconversion -pedantic -o test test.cpp
> test.cpp: In function ‘int main()’:
> test.cpp:3: warning: unused variable ‘d’
>
> And g++ does not warn about this implicit conversion. Have i missed something?

-Wconversion has been significantly improved lately; which version of
gcc are you using?

Also, does it make a difference if you #include <new>?

Ian


[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