[Bug c/38116] Excessive warnings when using assert and -Wconversion on 64bit platforms

paulf at free dot fr gcc-bugzilla@gcc.gnu.org
Sat Nov 15 20:53:00 GMT 2008



------- Comment #2 from paulf at free dot fr  2008-11-15 20:51 -------
I do not agree that this is a duplicate of 6614. 6614 is a consequence of
integer promotion, and there is no possible user code change that would make it
go away (other than avoiding integral types smaller than int in function
arguments).

This bug could be fixed by using the correct types in the assert macro, e.g.,

__builtin_expect ((long int)!!(expr), 1L)


-- 

paulf at free dot fr changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|DUPLICATE                   |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38116



More information about the Gcc-bugs mailing list