From 84e456eee2335d9e14dc96bcf35e66135623652d Mon Sep 17 00:00:00 2001 From: Timofey Turenko Date: Wed, 13 Mar 2019 12:53:12 +0200 Subject: [PATCH] ignore truncate() return in fwf_syntax test --- maxscale-system-test/fwf_syntax.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maxscale-system-test/fwf_syntax.cpp b/maxscale-system-test/fwf_syntax.cpp index b50c42d9f..13d2d7ee6 100644 --- a/maxscale-system-test/fwf_syntax.cpp +++ b/maxscale-system-test/fwf_syntax.cpp @@ -63,7 +63,7 @@ int main(int argc, char** argv) for (int i = 0; rules_failure[i]; i++) { /** Create rule file with syntax error */ - test.add_result(truncate(temp_rules, 0), "Failed to truncate"); + int __attribute__((unused)) rc = truncate(temp_rules, 0); create_rule(rules_failure[i], users_ok[0]); copy_rules(&test, (char*)temp_rules, (char*)test_dir);