Re: quick and rudimentary

New Message Reply Date view Thread view Subject view Author view

Jay Gischer (gischer++at++knex.engr.sgi.com)
Wed, 14 Oct 1998 09:18:44 -0700 (PDT)


Stephen Maher writes:
> Steve Baker writes:
> >
> > On Mon, 12 Oct 1998, Mario Veraart wrote:
> >
> > > > I'm tired of these compiler warnings
> > > >
> > > > "float (*)[4]" is incompatible with parameter of type "const float (*)[4]"
> > > >
> > > > I want to do things like
> > > >
> > > > pfMatrix m1,m2,m3;
> > > > pfPostMultMat(m2,m3);
> > > > pfPostMultMat(m1,m2);
> > > >
> > > > (e.g., reuse constant input matrices as output matrices)
> > > >
> > > > Any tips? (Besides disabling this warning or switching to C++ :)
> > > >
> > > > Thanks,
> > > > Steve
> > > > --
> > > > stephen.maher++at++gsfc.nasa.gov (301) 286-3368 fax:(301) 286-1776
> > >
> > > Use the #pragma to set and reset warning numbers around some parts of
> > > the code
> > >
> > > #pragma set woff 1122
> > >
> > > <code that generates warning 1122>
> > >
> > > #pragma reset woff 1122
> >
> > Ack! The problem is that those warning numbers change from one SGI C/C++ compiler
> > to the next. This code might turn off the 'const' message now - but next time
> > it might turn off the 'unused variable' warning or something else that you should
> > really care about.
> >
The biggest source of changing warning numbers that I'm aware of
comes when you switch abi's from o32 to n32 or n64, since the front
ends used are different. As far as I know,
the warning numbers never overlap, this was a definite issue of
concern. It is a pain, but trying to map the old warnings to the new
warnings was even more of a pain, since there wasn't really a 1-1
correspondence.

------------------------------------------------------------------------
Jay L Gischer + "I see great things in baseball. It's our game.
Silicon Graphics + It will repair our losses and be a blessing to us."
(650) 390-4277 + -Walt Whitman
gischer++at++sgi.com +
                     + "A life has no meaning except in the impact it
                     + has on other lives"
                     + -Jackie Robinson


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Wed Oct 14 1998 - 09:18:46 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.