From: Larry Lachman (larry++at++paradigmsim.com)
Date: 05/02/2000 06:58:42
Guy Wallis wrote:
> Hallo,
> I've just started using Performer and decided to compile the examples in
> /usr/share/Performer/src/pguide/libpf/C
> They compiled OK but I got a lot of compiler warnings of the following type:
>
>
> /usr/bin/cc -DN32 -DIRIX6_5 -I/usr/include -fullwarn -nostdinc
> -I/usr/include -mips3 -n32 -O --MDupdate Makedepend -woff
> 1685,515,608,658,799,803,852,1048,1233,1499 -c ../text3D.c
> cc-1164 cc: WARNING File = ../text3D.c, Line = 96
> Argument of type "float (*)[4]" is incompatible with parameter of type
> "const float (*)[4]".
>
> pfStringMat(GSetStrings[EXTRUDED], mat);
> ^^^
>
> This is true for many other function calls with pfMatrix as an argument e.g.:
>
> pfPostTransMat(), pfLoadMatrix(), pfMultMatrix().
>
> I guess removing-fullwarn would hide this problem, but like the writers of the
> original Makefile in the pguide directory, I like to use this feature. Is
> there some way of eradicating this warning rather than ignoring it.
Yes. You can keep the -fullwarn level while eliminating this particular
warning. What you will
need to do is instruct the compiler to not generate warning number 1164. The
way to do this is
surround your line (or block) of code with the following pragmas:
#pragma set woff 1164
pfMultMatrix( mat );
#pragma reset woff 1164
Larry
-- _______________________________________________________________Larry Lachman WWW: http://www.multigen-paradigm.com Computer Associates, Inc. larry++at++paradigmsim.com 14900 Landmark, Suite 400 (972) 960-2301 ext 287 voice Dallas, Texas 75240 USA (972) 960-2303 fax
This archive was generated by hypermail 2b29 : Tue May 02 2000 - 06:58:48 PDT