Avatar of rickhill11
rickhill11

asked on 

cb: unreferenced local variable

I have a class, call if foo.
namespace foo6
{
   class foo
   {
   static int Trim(char *buffer);
   ...
   }
}


In the cpp file

...OnInitialUpdate()
{
    Cview::On...
   foo6::foo fb;

   A couple of lines later
   fb.Trim(buff);
}

Everything seems to work exactly as advertised, except that I get the unreferenced local variable message from the compiler.

What am I doing wrong?

Rick
C++Microsoft DevelopmentProgramming

Avatar of undefined
Last Comment
Karrtik Iyer

8/22/2022 - Mon