On Tuesday, April 12, 2016 at 2:23:38 PM UTC-5, Bram Moolenaar wrote: > Michael Jarvis wrote: > > > I've noticed a handful of errors and warnings when compiling Vim with > > the GCC "-ansi -pedantic" flags. > > > > Is there a desire to keep the code so that it compiles cleanly with > > older compilers, or are we assuming that most users have C99 support? > > Yes, we support ANSI C. > > > I can submit patches to fix some warnings/errors when compiling in > > "ANSI" mode, but it's probably not worth the effort if we're assuming > > C99 is the minimum. > > Please do send patches. I tried getting the errors, but the header > files on my system don't work when switching to ANSI mode. > > > For example, I noticed this error this morning, building on OpenBSD > > 5.9 in src/eval.c, using the Vim 7.4 patch 1724 code from Github. The > > "//" comments didn't officially become of part of the C standard until > > C99, although it was a common extension before then. > > That // comment shouldn't be there at all! > > Thanks for the patch.
Not a problem! I will submit a few more. :-) -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
