This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Avoiding "assignment from incompatible pointer type" warning
- From: John Love-Jensen <eljay at adobe dot com>
- To: Florian Weimer <fw at deneb dot enyo dot de>, "Moore, Mathew L" <MooreML at BATTELLE dot ORG>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: Mon, 21 Oct 2002 09:41:03 -0500
- Subject: Re: Avoiding "assignment from incompatible pointer type" warning
> Furthermore, there's no way to determine the required alignment of a type.
The GCC compiler has an extension to C and C++, which does allow the
programmer to determine the required alignment of a type.
But that facility is a GCC specific language extension, and not part of C or
C++. (Take this as a HUGE RED WARNING FLAG. If you use GCC's compiler
specific extensions, you have committed to programmig in GCC-C or GCC-C++,
not in C or C++.)
--Eljay