Index: src/GenPoly/Specialize.cc
===================================================================
--- src/GenPoly/Specialize.cc	(revision 10a7775d07dcc9d19f88786e6be9a198720e9cac)
+++ src/GenPoly/Specialize.cc	(revision 2f6b7c9cc761b794c66ba5ff95d6a88b646e5d30)
@@ -25,4 +25,5 @@
 #include "SynTree/Statement.h"
 #include "SynTree/Type.h"
+#include "SynTree/Attribute.h"
 #include "SynTree/TypeSubstitution.h"
 #include "SynTree/Mutator.h"
@@ -101,4 +102,7 @@
 		thunkFunc->fixUniqueId();
 
+		// thunks may be generated and not used - silence warning with attribute
+		thunkFunc->get_attributes().push_back( new Attribute( "unused" ) );
+
 		// thread thunk parameters into call to actual function, naming thunk parameters as we go
 		UniqueName paramNamer( paramPrefix );
