1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-11-09 14:40:55 +03:00

Disable -Wclobber compiler warning.

...because it is mostly useless but keep the rest of of -Wextra.
This commit is contained in:
David Steele
2017-11-19 16:44:33 -05:00
parent dc1a5c18ac
commit 3b43047e0d
9 changed files with 16 additions and 14 deletions

View File

@@ -5,7 +5,7 @@ Test Error Handling
/***********************************************************************************************************************************
testTryRecurse - test to blow up try stack
***********************************************************************************************************************************/
int testTryRecurseTotal = 0;
volatile int testTryRecurseTotal = 0;
bool testTryRecurseCatch = false;
bool testTryRecurseFinally = false;
@@ -43,7 +43,7 @@ void testRun()
// -----------------------------------------------------------------------------------------------------------------------------
if (testBegin("TRY with no errors"))
{
bool tryDone = false;
volatile bool tryDone = false;
bool catchDone = false;
bool finallyDone = false;
@@ -72,9 +72,9 @@ void testRun()
// -----------------------------------------------------------------------------------------------------------------------------
if (testBegin("TRY with multiple catches"))
{
bool tryDone = false;
bool catchDone = false;
bool finallyDone = false;
volatile bool tryDone = false;
volatile bool catchDone = false;
volatile bool finallyDone = false;
TRY_BEGIN()
{
@@ -136,7 +136,7 @@ void testRun()
// -----------------------------------------------------------------------------------------------------------------------------
if (testBegin("too deep recursive TRY_ERROR()"))
{
bool tryDone = false;
volatile bool tryDone = false;
bool catchDone = false;
bool finallyDone = false;