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

#pragma GCC diagnostic ignored "-Wdocumentation" #393

Closed
pavel-pimenov opened this issue Dec 12, 2016 · 3 comments
Closed

#pragma GCC diagnostic ignored "-Wdocumentation" #393

pavel-pimenov opened this issue Dec 12, 2016 · 3 comments

Comments

@pavel-pimenov
Copy link

git - develop

c++ -std=c++11 -O2 -g -Wall -Wextra -D_WITH_SQLITE -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.1 -c /home/dc/src/ptokax-svn/core/DcCommands.cpp -o /home/dc/src/ptokax-svn/obj/DcCommands.o
In file included from /home/dc/src/ptokax-svn/core/DcCommands.cpp:40:0:
/home/dc/src/ptokax-svn/core/../json/json.hpp:76:36: warning: unknown option after ‘#pragma GCC diagnostic’ kind [-Wpragmas]
#pragma GCC diagnostic ignored "-Wdocumentation"

c++ --version
c++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.

@nlohmann
Copy link
Owner

Related to #391. I did not know -Wdocumentation is a Clang-only flag.

@nlohmann nlohmann added this to the Release 2.0.9 milestone Dec 12, 2016
nlohmann added a commit that referenced this issue Dec 12, 2016
@nlohmann nlohmann self-assigned this Dec 12, 2016
@nlohmann
Copy link
Owner

Fixed the code by only using the pragma when Clang is used.

@jaredgrubb
Copy link
Contributor

Thanks for finding and fixing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants