From 1855b7625531289802267059012ef71268584307 Mon Sep 17 00:00:00 2001 From: Toni Neubert Date: Thu, 9 Mar 2017 12:57:53 +0100 Subject: [PATCH] Add parentheses around macro parameter "expr" to avoid -Wparentheses in gcc. --- include/internal/catch_capture.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/internal/catch_capture.hpp b/include/internal/catch_capture.hpp index ef0fcc7c..e1cc8f0a 100644 --- a/include/internal/catch_capture.hpp +++ b/include/internal/catch_capture.hpp @@ -44,7 +44,7 @@ Catch::ResultBuilder __catchResult( macroName, CATCH_INTERNAL_LINEINFO, #expr, resultDisposition ); \ try { \ CATCH_INTERNAL_SUPPRESS_PARENTHESES_WARNINGS \ - ( __catchResult <= expr ).endExpression(); \ + ( __catchResult <= (expr) ).endExpression(); \ CATCH_INTERNAL_UNSUPPRESS_PARENTHESES_WARNINGS \ } \ catch( ... ) { \