aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Arthur Nascimento <tureba@gmail.com> 2018-07-07 22:56:02 -0300
committerAvatar Marvin Schmidt <marvin.schmidt1987@gmail.com> 2021-12-08 11:42:54 +0000
commit15fd7f33b8c955d6114feec6155cb839156c5d88 (patch)
tree0a195bd0e86d3a8bf5ba0903430e7863e4db4044
parent786ebeb6ce8e92d47c6636c39a899cef6101753e (diff)
downloadpaludis-15fd7f33b8c955d6114feec6155cb839156c5d88.tar.gz
paludis-15fd7f33b8c955d6114feec6155cb839156c5d88.tar.xz
add braces to avoid ambiguity in if-else
As recommended by gcc.
-rw-r--r--paludis/user_dep_spec_TEST.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/paludis/user_dep_spec_TEST.cc b/paludis/user_dep_spec_TEST.cc
index 0390f0060..ecbe7ca8d 100644
--- a/paludis/user_dep_spec_TEST.cc
+++ b/paludis/user_dep_spec_TEST.cc
@@ -113,7 +113,9 @@ UserDepSpecTest::check_spec(
}
if (! version_requirement_mode.empty())
+ {
EXPECT_EQ(version_requirement_mode, stringify(spec.version_requirements_mode()));
+ }
if (version_requirements.empty())
EXPECT_TRUE((! spec.version_requirements_ptr()) || spec.version_requirements_ptr()->empty());