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


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