On 06/15/2018 10:29 PM, Matthew R. Trower wrote:
Jon Trulson <j...@radscan.com> writes:

What gcc6 issues did you have?  I fixed some for FreeBSD, maybe it
works for you now?

Alright, here's the deal.  GCC>4 turns on C11 mode by default.  It's a
standards error to compile an XPG5 (or older) application with a C99 or
newer compiler.  Sun systems actually call you on this.

The answer is -ansi (or -std=c89, -std=c90, etc), and it fixes that
particular problem.  However, more surface.

When you get a chance, can you tell me if you get a clean build with
-ansi on a GCC6 system?  I'll go from there.


Ah yes. I created a branch to test -std=gnu99/std99 C support a few weeks ago, and saw these issues too. I was able to build with gnu99 (otherwise with std99, certain localization functions we need were not available). I figured we'd punt till the next release after this one.

In master, on linux/bsd we use -ansi (C89), and this works, even with gcc6. I'd like to move to at least C99 someday, since it lends itself to better C code, but was going to save that for after an official release. C99 also complains about a lot more stuff, so many more warnings :)

So, if you are using gcc, use -ansi, at least until we take the plunge.

-jon


[...]

--
Jon Trulson

"Fire all weapons and open a hailing frequency for my victory yodle."

                              - Zapp Brannigan

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel

Reply via email to