Commit bc28b305 authored by Daniel Black's avatar Daniel Black Committed by Sergey Vojtovich

Remove warning: unused variable 'volatile_var' [-Wunused-variable]

This occured in gcc-6.2.1.

The variable wasn't used so was no need to be volatile either.
Signed-off-by: default avatarDaniel Black <daniel.black@au.ibm.com>
parent 88b5eede
...@@ -90,9 +90,7 @@ struct ut_when_dtor { ...@@ -90,9 +90,7 @@ struct ut_when_dtor {
# define UT_RELAX_CPU() YieldProcessor() # define UT_RELAX_CPU() YieldProcessor()
# elif defined(__powerpc__) # elif defined(__powerpc__)
#include <sys/platform/ppc.h> #include <sys/platform/ppc.h>
# define UT_RELAX_CPU() do { \ # define UT_RELAX_CPU() __ppc_get_timebase()
volatile lint volatile_var = __ppc_get_timebase(); \
} while (0)
# else # else
# define UT_RELAX_CPU() ((void)0) /* avoid warning for an empty statement */ # define UT_RELAX_CPU() ((void)0) /* avoid warning for an empty statement */
# endif # endif
......
...@@ -87,9 +87,7 @@ struct ut_when_dtor { ...@@ -87,9 +87,7 @@ struct ut_when_dtor {
# define UT_RELAX_CPU() YieldProcessor() # define UT_RELAX_CPU() YieldProcessor()
# elif defined(__powerpc__) # elif defined(__powerpc__)
#include <sys/platform/ppc.h> #include <sys/platform/ppc.h>
# define UT_RELAX_CPU() do { \ # define UT_RELAX_CPU() __ppc_get_timebase()
volatile lint volatile_var = __ppc_get_timebase(); \
} while (0)
# else # else
# define UT_RELAX_CPU() ((void)0) /* avoid warning for an empty statement */ # define UT_RELAX_CPU() ((void)0) /* avoid warning for an empty statement */
# endif # endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment