--- a/src/__gfweight__.cc
+++ b/src/__gfweight__.cc
@@ -69,7 +69,6 @@
   Matrix gen = args(0).matrix_value ();
   int k = gen.rows ();
   int n = gen.columns ();
-  unsigned long long nsym = ((unsigned long long)1 << k);
 
   if (k > 128)
     {