mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-23 00:15:58 +01:00
Add missing volatile type qualifier
... to fix "clobbered variable" compiler warning (`-Wclobbered`).
This commit is contained in:
@@ -14,7 +14,7 @@ static void run_test(UnityTestFunction func, const char* name, UNITY_LINE_TYPE l
|
|||||||
if (TEST_PROTECT())
|
if (TEST_PROTECT())
|
||||||
{
|
{
|
||||||
<% if @options[:plugins].include?(:cexception) %>
|
<% if @options[:plugins].include?(:cexception) %>
|
||||||
CEXCEPTION_T e;
|
volatile CEXCEPTION_T e;
|
||||||
Try {
|
Try {
|
||||||
<%= @options[:setup_name] %>();
|
<%= @options[:setup_name] %>();
|
||||||
func();
|
func();
|
||||||
|
|||||||
Reference in New Issue
Block a user