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

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




------- 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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Reply to: