Avatar of 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

   foo6::foo fb;

   A couple of lines later

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

What am I doing wrong?

C++Microsoft DevelopmentProgramming

Avatar of undefined
Last Comment
Karrtik Iyer

8/22/2022 - Mon