--- a/src/__kernel_weights.cc
+++ b/src/__kernel_weights.cc
@@ -28,7 +28,7 @@
 	Matrix evalpoints (args(1).matrix_value());
 	std::string kernel (args(2).string_value());
 
-	int n, nn, i, j, k, kk, dim;
+	int n, nn, i, j, k, dim;
 
 	n = data.rows();
 	dim = data.columns();