From 440a0fd3aa4182b037cf04818d8210513959d2ac Mon Sep 17 00:00:00 2001 From: Paul Colby Date: Tue, 24 Mar 2015 21:13:00 +1100 Subject: [PATCH] Fix a GCC 5.0.0 compiler warning This change makes the meaning of the code more explicit anyway, making GCC's warning a sensible one :) --- include/pcp-cpp/pmda.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pcp-cpp/pmda.hpp b/include/pcp-cpp/pmda.hpp index 12c3bdf..e3d7565 100644 --- a/include/pcp-cpp/pmda.hpp +++ b/include/pcp-cpp/pmda.hpp @@ -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); }