On Wed, 7 Mar 2001, Pavel Roskin wrote:
> I couldn't find any description of _how_ the compilation breaks if
> -qlanglvl=ansi is used.

Searching the mailing list archieve seems to reveal that it was bad
coding within the mc sources and removing -qlanglvl=ansi was the short
term solution:
: "edit.c", line 1247.22: 1506-280 (E) Function argument assignment
: between types "const unsigned char*" and "char*"  is not allowed.

: Chosing to compile without edit gives a lot of other errors elsewhere.

At that time even gcc -Wall printed lots of warnings. Since then the
sources have been improved a lot and I think it's fine to re-add the
complete A[MC]_PROG_CC_STDC again.


> My suspicion is that that option enabled
> additional definitions in the system headers, some of which conflicted
> with the MC internal symbols.

Even if it would had been that problem: me thinks it would be better to
fix MC's sources instead of adding a workaround.


> Let me explain the arguments behing my patch.

Your rationals are sensible and because I don't have an AIX system at my
disposal I'd suggest to keep your patch applied. I wrongly remembered a
problem with the native AIX compiler whereas in fact MC's sources were
faulty.

Regards,
Norbert




Reply via email to