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

gcc-13 warning: unknown pragma regarding -Wundefined-var-template #166

Open
anarthal opened this issue Mar 21, 2024 · 0 comments
Open

gcc-13 warning: unknown pragma regarding -Wundefined-var-template #166

anarthal opened this issue Mar 21, 2024 · 0 comments

Comments

@anarthal
Copy link

detail/fake_object.hpp emits the following warning under gcc 13.1 (Linux):

./boost/pfr/detail/fake_object.hpp:23:35: error: unknown option after ‘#pragma GCC diagnostic’ kind [-Werror=pragmas]
   23 | #   pragma GCC diagnostic ignored "-Wundefined-var-template"

You need to build with -Wall to get it. Actually, any code with the line # pragma GCC diagnostic ignored "-Wundefined-var-template" emits such a warning. gcc-11 also emits the same warning. I don't have an exhaustive list of compilers, but it looks like GCC is not understanding this line.

This has been introduced in Boost 1.85. I build with -Wall -Wextra -Werror, so these are a little bit annoying.

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

No branches or pull requests

1 participant