aboutsummaryrefslogtreecommitdiff
path: root/paludis/environments/paludis/output_conf.cc
diff options
context:
space:
mode:
authorAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2013-02-26 20:07:44 -0800
committerAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2013-03-02 08:59:14 -0800
commitf5f4be355a65825de06a3c20c76f5b74c1f20837 (patch)
tree3b2dfece44f510192acf116cd2d6717cd8446110 /paludis/environments/paludis/output_conf.cc
parent7db4ce39e4d2c541c8aea8f172dee974469a98a6 (diff)
downloadpaludis-f5f4be355a65825de06a3c20c76f5b74c1f20837.tar.gz
paludis-f5f4be355a65825de06a3c20c76f5b74c1f20837.tar.xz
explicit cast of enumerations
clang (correctly) flags the non-cast values as being tautological (as they are outside the enumerated values). Explicitly cast the values to the enumeration for the error condition checks.
Diffstat (limited to 'paludis/environments/paludis/output_conf.cc')
-rw-r--r--paludis/environments/paludis/output_conf.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/paludis/environments/paludis/output_conf.cc b/paludis/environments/paludis/output_conf.cc
index ccd5f51..888cb03 100644
--- a/paludis/environments/paludis/output_conf.cc
+++ b/paludis/environments/paludis/output_conf.cc
@@ -173,7 +173,7 @@ namespace
if (rule.action_requirement() != "*" && rule.action_requirement() != "sync")
return false;
- if (-1 != rule.output_exclusivity_requirement() &&
+ if (static_cast<OutputExclusivity>(-1) != rule.output_exclusivity_requirement() &&
rule.output_exclusivity_requirement() != i.output_exclusivity())
return false;
@@ -197,7 +197,7 @@ namespace
if (rule.action_requirement() != "*" && rule.action_requirement() != i.action_name())
return false;
- if (-1 != rule.output_exclusivity_requirement() &&
+ if (static_cast<OutputExclusivity>(-1) != rule.output_exclusivity_requirement() &&
rule.output_exclusivity_requirement() != i.output_exclusivity())
return false;