Michael Jarvis wrote: > This is another warning from compiling with "-ansi -pedantic" on > OpenBSD 5.9 using GCC 4.2.1. > > $ gcc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/local/include -Os -Wall > -Wextra -pipe -ansi -pedantic -DNDEBUG -mtune=native -U_FORTIFY_SOURCE > -D_FORTIFY_SOURCE=1 -o objects/ex_cmds.o ex_cmds.c > ex_cmds.c: In function 'ex_smile': > ex_cmds.c:7808: warning: string length '520' is greater than the length '509' > ISO C90 compilers are required to support > > Looking at the code in question, it's a bit humorous. The fix, of > course, is to split the string constant up so that it's smaller than > 509 bytes. > > There's more than one way to fix this, but a reasonable way would be > to break it into two smaller strings, and iterate over them. > > Diff attached against 7.4.1725
Thanks! -- This sentence is not sure that it exists, but if it does, it will certainly consider the possibility that other sentences exist. /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- 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.
