[PATCH] AIX Fix xlc designated initializer bug
Volker Lendecke
Volker.Lendecke at SerNet.DE
Tue Mar 1 20:17:09 UTC 2016
On Tue, Mar 01, 2016 at 12:28:06PM -0500, Guillaume G Taillon wrote:
> > But I'd like to understand better why we need it. ;-)
>
> To make samba compatible with current compilers. I don't know when it will
> be fixed/if they decide to fix it so without the patch samba doesn't work
> on AIX.
While that might be a pity, I don't really know how to deal
with this. There's a gcc bug where it will generate a
warning where it should not with initializers. It's not that
we're talking C11. We're talking about something that has
been standardized more than a decade ago, and the compilers
still haven't caught up.
Do we need to go back to ANSI C, or even K&R? If we went
there, we could even compile with Visual C++ again. We could
do that, but it will be quite a change.
Volker
--
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de
More information about the samba-technical
mailing list