-
Notifications
You must be signed in to change notification settings - Fork 567
Building with warnings as errors, excluding deprecated warnings
Many users like to build Trilinos with warnings as errors. With GCC and compatible compilers, this entails the -Werror
flag. (Trilinos has a CMake option for setting this in a compiler-independent way. TODO: List the option here.)
The problem with building with warnings as errors, though, is that deprecated warnings break the build. Trilinos users want to see deprecated warnings, so that they know they need to change their code. However, they may not have time to fix their code right away. This tempts them to either to turn off warnings as errors, or to disable deprecated warnings.
GCC users can enable both warnings as errors and deprecated warnings, while making deprecated warnings not count as errors. Set this flag: -Wno-error=deprecated-declarations
For a brief discussion, see the following issue: https://github.com/trilinos/Trilinos/issues/1905
Copyright © Trilinos a Series of LF Projects, LLC
For web site terms of use, trademark policy and other project policies please see https://lfprojects.org.
Trilinos Developer Home
Trilinos Package Owners
Policies
New Developers
Trilinos PR/CR
Productivity++
Support Policy
Test Dashboard Policy
Testing Policy
Managing Issues
New Issue Quick Ref
Handling Stale Issues and Pull Requests
Release Notes
Software Quality Plan
Proposing a New Package
Guidance on Copyrights and Licenses
Tools
CMake
Doxygen
git
GitHub Notifications
Mail lists
Clang-format
Version Control
Initial git setup
'feature'/'develop'/'master' (cheatsheet)
Simple centralized workflow
Building
SEMS Dev Env
Mac OS X
ATDM Platforms
Containers
Development Tips
Automated Workflows
Testing
Test Harness
Pull Request Testing
Submitting a Pull Request
Pull Request Workflow
Reproducing PR Errors
Addressing Test Failures
Trilinos Status Table Archive
Pre-push (Checkin) Testing
Remote pull/test/push
PR Creation & Approval Guidelines for Tpetra, Ifpack2, and MueLu Developers