GNOME Bugzilla – Bug 540180
gnumeric-1.8.2 fails to compile with ‘-pedantic’ in CFLAGS
Last modified: 2008-06-28 16:09:48 UTC
When gnumeric-1.8.2 is compiled with current versions of gcc, this is done in GNU C89 mode. If the user specifies ‘-pedantic’ in CFLAGS, the build breaks. Only the file plugins/openoffice/openoffice-read.c is affected. I am going to attach a patch which fixes the problem.
Created attachment 113405 [details] [review] Patch which fixes non ISO C89 conforming code in plugins/openoffice/openoffice-read.c This patch fixes the code to more strictly conform to ISO C. It is rather long, but in fact does not do much: it just moves a large array around in the code, and adds the necessary function prototypes above the array. This patch was created against gnumeric-1.8.2, but can also be cleanly applied to the gnumeric-1-8 branch (tested against r16669 a minute ago).
Fixed differently without the need to predeclare all those functions.
Ah, you have introduced a new function. Good idea! Thanks, Morten!
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.