]> git.buserror.net Git - polintos/scott/priv.git/blobdiff - idlcomp/languages/c++/marshall.cc
struct marshall: silence unused warning
[polintos/scott/priv.git] / idlcomp / languages / c++ / marshall.cc
index 8ab02e0bbc786189a1483316571ba0db55496dbb..ae58040cba55fd19c405063072150d5eca286e6b 100644 (file)
@@ -82,7 +82,7 @@ void CPPFile::output_marshall_method(Struct *sym)
 
        indent.indent_level++;
 
-       file << indent;
+       file << indent << "__attribute__((unused)) ";
        cpp_output_name(file, sym);
        file << " *sptr;\n"
             << indent << "void *ptr;\n"