-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
makefile: workaround boost errors under latest compilers
Problem: when using the latest gcc/clang compilers, older boost versions create multiple warnings to be emitted. Our use of `-Werror` turns these warnings in boost into hard errors, despite being in a third-party dependency. Solution: use `-isystem` rather than `-I` for the boost cppflags to denote that the boost headers are system-provided headers, which turns off most static analysis warnings for those headers. Special care must be taken to ensure that a compiler default system path (i.e., `/usr/include`) is not passed to `-isystem` to avoid compilation issues in GCC 6+. Related Documentation: - Clang: http://clang.llvm.org/docs/UsersManual.html#controlling-diagnostics-in-system-headers - GCC: https://gcc.gnu.org/onlinedocs/cpp/System-Headers.html
- Loading branch information
1 parent
9031326
commit b7d7e19
Showing
1 changed file
with
13 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters