From 13e0e38d99394edeb36b241c92e0b361fa08a608 Mon Sep 17 00:00:00 2001 From: vitaut Date: Wed, 21 Oct 2015 07:17:48 -0700 Subject: [PATCH] Workaround a bogus coverity warning --- test/format-impl-test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/format-impl-test.cc b/test/format-impl-test.cc index b6211f8f..ec09e6e2 100644 --- a/test/format-impl-test.cc +++ b/test/format-impl-test.cc @@ -64,7 +64,7 @@ TEST(FormatTest, StrError) { #ifdef _GNU_SOURCE // Use invalid error code to make sure that safe_strerror returns an error // message in the buffer rather than a pointer to a static string. - int error_code = -1; + volatile int error_code = -1; #else int error_code = EDOM; #endif