diff --git a/hashtable.hxx.in b/hashtable.hxx.in
index 2414dbac7cb8e7cea9a7dc8c2cba75069be5c32c..469581c709602b1ffefb77d295be9d6bdcde97eb 100644
--- a/hashtable.hxx.in
+++ b/hashtable.hxx.in
@@ -39,6 +39,11 @@
 #ifndef @KWSYS_NAMESPACE@_hashtable_hxx
 #define @KWSYS_NAMESPACE@_hashtable_hxx
 
+/* turn off no assignment warning */
+#if defined(_MSC_VER)
+#  pragma warning ( disable : 4512 ) /* no assignment operator for class */
+#endif
+
 #include <@KWSYS_NAMESPACE@/Configure.hxx>
 
 #include <@KWSYS_NAMESPACE@/cstddef>        // size_t