From: Scott Wood Date: Sun, 26 Feb 2012 04:43:14 +0000 (-0600) Subject: struct marshall: silence unused warning X-Git-Url: http://git.buserror.net/cgi-bin/gitweb.cgi?p=polintos%2Fscott%2Fpriv.git;a=commitdiff_plain;h=b4890229f8a85f10d34090f9ff38a7de5730ce6c struct marshall: silence unused warning Signed-off-by: Scott Wood --- diff --git a/idlcomp/languages/c++/marshall.cc b/idlcomp/languages/c++/marshall.cc index 8ab02e0..ae58040 100644 --- a/idlcomp/languages/c++/marshall.cc +++ b/idlcomp/languages/c++/marshall.cc @@ -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"