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

Warnings In Clang #473

Closed
capsocrates opened this issue Nov 17, 2015 · 4 comments
Closed

Warnings In Clang #473

capsocrates opened this issue Nov 17, 2015 · 4 comments

Comments

@capsocrates
Copy link

When compiling rapidjson from Clang 3.4.2 with all warning and error flags enabled, I get the warnings included in the attached buglisting.
rapidjson-bugs.txt

@miloyip
Copy link
Collaborator

miloyip commented Nov 23, 2015

Can you provide the flags you have chosen?
Currently on clang we do -Wall -Wextra -Werror -Wno-missing-field-initializers.

@andrusha97
Copy link
Contributor

Btw, if you don't want rapidjson to produce any warnings in your program, you can specify path to rapidjson header files with -isystem compiler option (instead of -I). It's especially designed for external libraries' includes.
If you use CMake, it provides support of -isystem via SYSTEM option of INCLUDE_DIRECTORIES command.

@capsocrates
Copy link
Author

I've been using -isystem to work around it.

I use the same flags (minus the missing-field one), but I also use -Weverything and -pedantic-errors

@miloyip
Copy link
Collaborator

miloyip commented Dec 18, 2015

I will try to fix -Weverything, but it will take some time.

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

3 participants