This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: -Wconversion producing incorrect warning


John Love-Jensen wrote:

The warning does not indicate that there is anything wrong with the code
itself.  The warning is justified, warranted, and desirable if/when/where
-Wconversion is specified, since the warning tells you that something funny
is happening that may not be apparent from the code itself, on that
particular platform.

We've worked around it for now by just passing the arguments by-reference instead. In this application it makes very little difference, and may in fact be slightly faster.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]