[MDEV-15043] Scripts: compilation warnings suppression Created: 2018-01-24  Updated: 2018-01-24  Resolved: 2018-01-24

Status: Closed
Project: MariaDB Server
Component/s: Compiling
Fix Version/s: N/A

Type: Task Priority: Major
Reporter: Sergey Vojtovich Assignee: Vladislav Vaintroub
Resolution: Won't Fix Votes: 0
Labels: contribution, foundation


 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


Generated at Thu Feb 08 08:18:15 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.