From 75159d5d8af739774c50396f8c2a6dcf5a9809e1 Mon Sep 17 00:00:00 2001 From: Tsuda Kageyu Date: Wed, 10 Jun 2015 03:44:30 +0900 Subject: [PATCH] Silence a GCC warning about ignoring a return value in test. --- tests/utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/utils.h b/tests/utils.h index 0cef0e39..1dfbec37 100644 --- a/tests/utils.h +++ b/tests/utils.h @@ -36,7 +36,7 @@ inline string copyFile(const string &filename, const string &ext) strcat(testFileName, ext.c_str()); #else snprintf(testFileName, sizeof(testFileName), "/%s/taglib-test-XXXXXX%s", P_tmpdir, ext.c_str()); - mkstemps(testFileName, 6); + static_cast(mkstemps(testFileName, 6)); #endif string sourceFileName = testFilePath(filename) + ext;