When I apply this patch it breaks gcc:

/home/dmarkle/Programming/xtrkcad/xtrkcad/app/wlib/gtklib/gtkhelp.c:133:13: 
error: static declaration of ‘load_into_view’ follows non-static declaration
In file included from 
/home/dmarkle/Programming/xtrkcad/xtrkcad/app/wlib/gtklib/gtkhelp.c:44:0:
/home/dmarkle/Programming/xtrkcad/xtrkcad/app/wlib/gtklib/gtkint.h:124:6: note: 
previous declaration of ‘load_into_view’ was here
make[2]: *** [app/wlib/gtklib/CMakeFiles/xtrkcad-wlib.dir/gtkhelp.c.o] Error 1

Additionally when I compile locally using cmake, clang successfully compiles.

Trying to track down this problem; I'm compiling here with cmake version 2.8.9; 
is this a change in a newer version?

Would moving the "void load_into_view ()" function up in the file before its 
first use fix this problem? Am I understanding the problem being that the type 
is implicitly declared before it's explicitly declared?

Attachment: signature.asc
Description: Digital signature

Reply via email to