mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-26 09:28:21 +00:00
Workaround a bogus coverity warning
This commit is contained in:
parent
cd097d334e
commit
13e0e38d99
@ -64,7 +64,7 @@ TEST(FormatTest, StrError) {
|
|||||||
#ifdef _GNU_SOURCE
|
#ifdef _GNU_SOURCE
|
||||||
// Use invalid error code to make sure that safe_strerror returns an error
|
// 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.
|
// message in the buffer rather than a pointer to a static string.
|
||||||
int error_code = -1;
|
volatile int error_code = -1;
|
||||||
#else
|
#else
|
||||||
int error_code = EDOM;
|
int error_code = EDOM;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user