Skip to content

#pragma GCC diagnostic ignored "-Wdocumentation" #393

Closed

Description

@pavel-pimenov

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.

Activity

  1. nlohmann commented on Dec 12, 2016

    @nlohmann
    Owner

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

  2. added this to the Release 2.0.9 milestone on Dec 12, 2016
  3. added a commit that references this issue on Dec 12, 2016
  4. self-assigned this
    on Dec 12, 2016
  5. nlohmann commented on Dec 12, 2016

    @nlohmann
    Owner

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

  6. jaredgrubb commented on Dec 13, 2016

    @jaredgrubb
    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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions