From a334649b0c8d884a496fab8d657dc71453c69ead Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Wed, 14 May 2008 19:38:08 +0000 Subject: [PATCH] braces added to resolve g++ 4.3.0 warning [SVN r45359] --- include/boost/python/with_custodian_and_ward.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/python/with_custodian_and_ward.hpp b/include/boost/python/with_custodian_and_ward.hpp index 906de6d7..9399478f 100644 --- a/include/boost/python/with_custodian_and_ward.hpp +++ b/include/boost/python/with_custodian_and_ward.hpp @@ -68,8 +68,9 @@ struct with_custodian_and_ward : BasePolicy_ bool result = BasePolicy_::precall(args_); - if (!result) + if (!result) { Py_DECREF(life_support); + } return result; }