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: Impact of compiler warning message


Min-Chia Jiang wrote:

Hi there,

Can anyone advise me, what is the impact of those Warning messages shown while compiling?
Generally warnings are not severe as errors and compilers are able to handle this situation (conflicts where warnings shown). That is why they are proceeding further in the compilation process. This may result in different behavior than the user intended. For that reason only a notification is given to the user as a warning.

Do warning messages have any effect to the program?
Yes. For example when singed and unsigned operands are used in comparisons the compiler would report a sign mismatch between these operands. The generated output may behave differently than the user intended.

For example, will more warning messages cause larger image/object size, or reduce the performance of compiler?
Yes. The degree differs based on the situation.

Best Regards
M.C Jiang

Balaji S



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