From b4890229f8a85f10d34090f9ff38a7de5730ce6c Mon Sep 17 00:00:00 2001 From: Scott Wood Date: Sat, 25 Feb 2012 22:43:14 -0600 Subject: [PATCH] struct marshall: silence unused warning Signed-off-by: Scott Wood --- idlcomp/languages/c++/marshall.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.39.2