From d2a902bd45d140345d72aa525a7ec4740d3eeab9 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Sun, 4 Oct 2015 20:24:20 +0200 Subject: [PATCH] quench a warning on windows --- include/pybind/pybind.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/pybind/pybind.h b/include/pybind/pybind.h index 36ac89c1e..57009e660 100644 --- a/include/pybind/pybind.h +++ b/include/pybind/pybind.h @@ -305,9 +305,9 @@ private: std::string msg = "Incompatible function arguments. The " "following argument types are supported:\n"; int ctr = 0; - for (function_entry *it = overloads; it != nullptr; it = it->next) { + for (function_entry *it2 = overloads; it2 != nullptr; it2 = it2->next) { msg += " "+ std::to_string(++ctr) + ". "; - msg += it->signature; + msg += it2->signature; msg += "\n"; } PyErr_SetString(PyExc_TypeError, msg.c_str());