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

Xcode 9 / clang - unknown warning group #92

Closed
Deadpikle opened this issue Oct 5, 2017 · 1 comment
Closed

Xcode 9 / clang - unknown warning group #92

Deadpikle opened this issue Oct 5, 2017 · 1 comment

Comments

@Deadpikle
Copy link

Deadpikle commented Oct 5, 2017

Description

When building some code that includes doctest, the following warning is emitted on line 65 of the combined header:

Unknown warning group - '-Wzero-as-null-pointer-constant', ignored

Steps to reproduce

To reproduce, simply attempt to build the some code that uses doctest.

Suggested Fix (adjusted from similar error here)

#if !defined(__has_warning) || __has_warning("-Wzero-as-null-pointer-constant")
# pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"
#endif

Extra information

  • doctest version: v1.2.1
  • Operating System: macOS Sierra
  • Compiler+version: Xcode 9 / Clang 9 (I think it's clang 9?)

re: clang version:

$ clang -v
Apple LLVM version 9.0.0 (clang-900.0.37)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
@onqtam onqtam closed this as completed in f1688b5 Oct 6, 2017
@onqtam
Copy link
Member

onqtam commented Oct 6, 2017

Should be fixed - this build with xcode 9 passed :)

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

2 participants