avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] New GCC warning - how to silence?


From: Joerg Wunsch
Subject: Re: [avr-gcc-list] New GCC warning - how to silence?
Date: Fri, 6 Apr 2007 00:02:04 +0200 (MET DST)

Eric Weddington <address@hidden> wrote:

> GCC 4 seems to be a lot more concerned about the differences between
> "char" and "unsigned char". Are you using the -funsigned-char flag
> in your compiler command?

Regardless of which is the default, just never mix up "char" with
either "unsigned char" (or uint8_t) or "signed char" (int8_t) at all.
A portable application needs to handle all three types as distinct, as
the default signedness of the type "char" is not determined by the
standard.

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]