2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 14:05:33 +00:00

[3932] Ignored remove return status

This commit is contained in:
Francis Dupont
2015-07-08 15:41:18 +02:00
parent 4577e7407d
commit 521e8ad6b2

View File

@@ -35,7 +35,7 @@ public:
/// @param content text to be written to disk
void writeFile(const std::string& content) {
// Write sample content to disk
remove(TEMP_FILE);
static_cast<void>remove(TEMP_FILE));
std::ofstream write_me(TEMP_FILE);
EXPECT_TRUE(write_me.is_open());
write_me << content;