From 2b7f768ed91cd39c658d9376072c18d3a4e582ac Mon Sep 17 00:00:00 2001 From: Peter Peterson Date: Fri, 27 Apr 2012 15:04:50 -0400 Subject: [PATCH] Refs #4473. Compiler warnings. --- .../mantid/kernel/src/Registry/SequenceTypeHandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Registry/SequenceTypeHandler.cpp b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Registry/SequenceTypeHandler.cpp index ca726e3b4395..771b7adf096f 100644 --- a/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Registry/SequenceTypeHandler.cpp +++ b/Code/Mantid/Framework/PythonInterface/mantid/kernel/src/Registry/SequenceTypeHandler.cpp @@ -33,10 +33,10 @@ namespace Mantid typedef typename ContainerType::value_type DestElementType; // Check for a container-like object - Py_ssize_t length(0); try { - length = len(value); + Py_ssize_t length = len(value); + UNUSED_ARG(length); } catch(boost::python::error_already_set&) {