Details
-
Task
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Won't Fix
Description
This module allows to suppress selection of warnings. Much easier to see warnings produced by your own patch instead of whole pile of messages. Module is OFF by default, so it will not affect anyone's build unless properly configured.
Usage: cmake -DWARN_MODE=early|late|both
|
|
Warn modes:
|
early print warnings while compiling each source file (like usually)
|
late print warnings at finish of build process
|
both print warnings both 'early' and 'late'
|
|
Suppressing specific warnings. All messages with 'warning:' and 'note:'
|
are collected in <build_dir>/compile.warnings To make them all suppressed do
|
|
cd <build_dir>; cat compile.warnings >> suppress.warnings
|
|
After that only newly introduced warnings will be shown. This helps to
|
concentrate on current task's warnings effectively avoiding those that are to
|
be fixed by other people.
|
|
To disable processing warnings by this module do
|
|
cmake -UWARN_MODE
|