aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2012-03-03 14:58:12 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2012-03-03 14:58:12 +0000
commit80c2d74b8ae2fdb4440d5ecd94859062ddb4ce8b (patch)
treecc8f50abbbfb939179ffe94fc1f678ffbf8a7550
parent2b72cb78a50bba0b6c86204199a8187af6db7a5c (diff)
downloadpaludis-80c2d74b8ae2fdb4440d5ecd94859062ddb4ce8b.tar.gz
paludis-80c2d74b8ae2fdb4440d5ecd94859062ddb4ce8b.tar.xz
Silence unused warning
-rw-r--r--paludis/util/config_file_TEST.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/paludis/util/config_file_TEST.cc b/paludis/util/config_file_TEST.cc
index be9850f..4c0376b 100644
--- a/paludis/util/config_file_TEST.cc
+++ b/paludis/util/config_file_TEST.cc
@@ -136,14 +136,14 @@ TEST(LineConfigFile, Open)
FSPath ff2("config_file_TEST_dir/not_a_config_file");
EXPECT_TRUE(! ff2.stat().exists());
- LineConfigFile * f2(0);
+ LineConfigFile * PALUDIS_ATTRIBUTE((unused)) f2(0);
EXPECT_THROW(f2 = new LineConfigFile(ff2, { }), ConfigFileError);
if (0 != geteuid())
{
FSPath ff3("config_file_TEST_dir/unreadable_file");
EXPECT_TRUE(ff3.stat().is_regular_file());
- LineConfigFile * f3(0);
+ LineConfigFile * PALUDIS_ATTRIBUTE((unused)) f3(0);
EXPECT_THROW(f3 = new LineConfigFile(ff3, { }), ConfigFileError);
}
}