Re: Info-Performer: Strange compiler warning
Don Hatch (hatch++at++hell.engr.sgi.com)
Fri, 28 Aug 1998 16:23:51 -0700
On Aug 28, 2:23pm, Mario Veraart wrote:
> Subject: Info-Performer: Strange compiler warning
> Hi pfAll,
>
> I have stepped onto the n32 wagon and now I have a lot of warnings
> that are related to pfMatrix calls. I use the C-API of performer.
> The compiler for o32 does not complain, not does the C++ compiler.
>
> Can anybody explain why the compiler might generate the following
> warning
>
> All variables are of type pfMatrix
>
> "../draw.c", line 389: warning(1164): argument of type "float (*)[4]"
> is incompatible with parameter of type "const float (*)[4]"
> pfMultMat (m2, m1, dcs->pos_matrix);
> ^
>
> "../draw.c", line 389: warning(1164): argument of type "float (*)[4]"
> is incompatible with parameter of type "const float (*)[4]"
> pfMultMat (m2, m1, dcs->pos_matrix);
> ^
>
> The compiler options that I use are:
>
> cc -mips3 -n32 -O -g0 -O2
>
> Thanks in advance.
>
> Mario
> =======================================================================
> List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>-- End of excerpt from Mario Veraart
I believe this is a compiler bug
(#584373 if you're talking to someone at SGI who wants to look it up).
Most people compile with "-woff 1164" because these warnings are intolerable,
but of course this means you won't get warned when you have a real mismatch.
Note, this problem only occurs with C, so you could also avoid it
by switching to C++.
Don
--
Don Hatch hatch++at++sgi.com (650) 933-5150 Silicon Graphics, Inc.
This archive was generated by hypermail 2.0b2
on Fri Aug 28 1998 - 16:23:56 PDT