[tuhopuu-devel] compilation error

Ivan Sedo ikoframe at zoznam.sk
Fri Jun 17 18:53:49 CEST 2005


hi,
If I change comments to c style, then it compiles to that point


source/blender/hemesh/tools/tool_manager.c:22: error: static declaration
of ‘he_tool_array’ follows non-static declaration
source/blender/include/BIF_meshHE.h:173: error: previous declaration of
‘he_tool_array’ was here
source/blender/hemesh/tools/tool_manager.c:54: warning: missing
initializer
source/blender/hemesh/tools/tool_manager.c:54: warning: (near
initialization for ‘he_tool_array[31].flag’)
source/blender/hemesh/tools/tool_manager.c: In function ‘he_exec_tool’:
source/blender/hemesh/tools/tool_manager.c:88: warning: ‘return’ with no
value, in function returning non-void
source/blender/hemesh/tools/tool_manager.c:113: warning: this function
may return with or without a value
scons: ***
[/home/iko/new_tuhopuu3/build/linux2/source/blender/hemesh/tools/tool_manager.o] Error 1
scons: building terminated because of errors.

as you can see, I am using scons
the system is fc4, so gcc is assumed to be of version 4

comments are mentioned in coding style so people should follow it ..


On Thu, 2005-06-16 at 11:00 -0600, joeedh wrote:
> Ivan Sedo wrote:
> 
> >hi,
> >there are two c++ style comments in c file
> >
> >extern/qhull/src/geom.c
> >extern/qhull/src/geom.c: In function `qh_findbest':
> >extern/qhull/src/geom.c:142: error: syntax error before '/' token
> >extern/qhull/src/geom.c: In function `qh_findbestnew':
> >extern/qhull/src/geom.c:412: error: syntax error before '/' token
> >
> >
> >ivan
> >
> The compiler should be set to not care.
> 
> If your using gcc, try searching the makefiles for -pedantic in the 
> CFLAGS, if it's in there then cut it out.
> 
> joeedh
> _______________________________________________
> tuhopuu-devel mailing list
> tuhopuu-devel at projects.blender.org
> http://projects.blender.org/mailman/listinfo/tuhopuu-devel



More information about the tuhopuu-devel mailing list