From 72f30d82e44e98855c62aca4ad18326d97520075 Mon Sep 17 00:00:00 2001 From: 6arms1leg Date: Mon, 21 Feb 2022 14:10:10 +0100 Subject: [PATCH] Add missing `volatile` type qualifier ... to fix "clobbered variable" compiler warning (`-Wclobbered`). --- auto/run_test.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto/run_test.erb b/auto/run_test.erb index f91b566..68b3373 100644 --- a/auto/run_test.erb +++ b/auto/run_test.erb @@ -14,7 +14,7 @@ static void run_test(UnityTestFunction func, const char* name, UNITY_LINE_TYPE l if (TEST_PROTECT()) { <% if @options[:plugins].include?(:cexception) %> - CEXCEPTION_T e; + volatile CEXCEPTION_T e; Try { <%= @options[:setup_name] %>(); func();