Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(PA-2055) Disable warnings for boost::variant #110

Merged
merged 1 commit into from
Jul 17, 2018

Conversation

caseywilliams
Copy link
Contributor

With boost 1.67, boost/variant.hpp introduces address and (in gcc 6+)
nonnull-compare warnings; Quiet these to allow successful builds with
-Werror. This supports puppetlabs/puppet-agent#1482.

@@ -3,7 +3,15 @@
#include <memory>
#include <vector>
#include <unordered_map>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Waddress"
#ifdef __GNUC__
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe that this can be collapsed as #if defined(__GNUC__) && __GNUC__ > 5

With boost 1.67, boost/variant.hpp introduces address and (in gcc 6+)
nonnull-compare warnings; Quiet these to allow successful builds with
-Werror.
@branan branan merged commit c710b8c into puppetlabs:master Jul 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants