]> git.buserror.net Git - polintos/scott/priv.git/commitdiff
struct marshall: silence unused warning
authorScott Wood <scott@buserror.net>
Sun, 26 Feb 2012 04:43:14 +0000 (22:43 -0600)
committerScott Wood <scott@buserror.net>
Fri, 9 Mar 2012 05:18:05 +0000 (23:18 -0600)
Signed-off-by: Scott Wood <scott@buserror.net>
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"