[tuhopuu-devel] compilation error
Joseph Eagar
joeeagar at prodigy.net
Sat Jul 16 00:46:02 CEST 2005
bjornmose wrote:
> Ivan Sedo wrote:
>
>> Hi,
>> compilation of the current cvs using fc4, gcc-4.0.0-8, scons-0.96.1-1
>> yells:
>>
>>
>> source/blender/src/buttons_shading.c:3248: warning: array subscript has
>> type ‘char’
>> source/blender/src/buttons_shading.c: In function
>> ‘material_panel_texture’:
>> source/blender/src/buttons_shading.c:3365: warning: array subscript has
>> type ‘char’
>> source/blender/src/buttons_shading.c:3423: warning: array subscript has
>> type ‘char’
>> source/blender/src/buttons_shading.c: In function
>> ‘material_panel_shading’:
>> source/blender/src/buttons_shading.c:3717: error: ‘id’ undeclared (first
>> use in this function)
>> source/blender/src/buttons_shading.c:3717: error: (Each undeclared
>> identifier is reported only once
>> source/blender/src/buttons_shading.c:3717: error: for each function it
>> appears in.)
>> source/blender/src/buttons_shading.c:3717: error: ‘idfrom’ undeclared
>> (first use in this function)
>> source/blender/src/buttons_shading.c:3727: error: ‘ob’ undeclared (first
>> use in this function)
>> source/blender/src/buttons_shading.c: In function ‘material_panels’:
>> source/blender/src/buttons_shading.c:4056: warning: array subscript has
>> type ‘char’
>> source/blender/src/buttons_shading.c: In function ‘texture_panels’:
>> source/blender/src/buttons_shading.c:4123: warning: array subscript has
>> type ‘char’
>> scons: ***
>> [/home/iko/new_tuhopuu3/build/linux2/source/blender/src/buttons_shading.o]
>> Error 1
>> scons: building terminated because of errors.
>>
>>
>> _______________________________________________
>> tuhopuu-devel mailing list
>> tuhopuu-devel at projects.blender.org
>> http://projects.blender.org/mailman/listinfo/tuhopuu-devel
>>
>>
> for time beeing add
> ID *id, *idfrom;
> to local var definitions
>
> and comment out the lines
> if(ob->actcol==0) ob->actcol= 1; /* because of TOG|BIT button */
> if(ob->totcol==0) return;
>
> since they don't make very much sense without a given parameter 'ob'
>
> in buttons_shading.c @ function
> material_panel_shading(Material *ma)
>
> ole
in my patch I added the *id, *idfrom and the initlizer code for them,
plus I added a ob parameter and made sure the function was called with it.
joeedh
More information about the tuhopuu-devel
mailing list