Skip to content

Commit

Permalink
Fix a GCC 5.0.0 compiler warning
Browse files Browse the repository at this point in the history
This change makes the meaning of the code more explicit anyway, making
GCC's warning a sensible one :)
  • Loading branch information
pcolby committed Mar 24, 2015
1 parent f092b93 commit 440a0fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/pcp-cpp/pmda.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1132,7 +1132,7 @@ class pmda {

validate_instance(description, id.instance);

if (!description.flags & pcp::storable_metric) {
if (!(description.flags & pcp::storable_metric)) {
// Metric does not support storing values.
throw pcp::exception(PM_ERR_PERMISSION);
}
Expand Down

0 comments on commit 440a0fd

Please sign in to comment.