Warnings is a header-only, cross-compiler warning suppression library. Warnings is derived from Ruslan Baratov's excellent leathers library, forked to remove the heavy Boost dependency.
Table of Contents
// push warning suppression
#include <leathers/push.h>
// include suppressed warnings
#include <leathers/all.h> // suppress all warnings
#include <leathers/exit-time-destructors.h> // suppress exit-time-destructors
// insert your code here
// pop all warning suppression
#include <leathers/pop.h>
Simply add the src
directory to the compiler include directory path with -I/path/to/src
.
Simply clone, configure with CMake, and build to run the unittest suite.
git clone https://github.com/Alexhuszagh/warnings.git
git submodule update --init --recursive
cmake .
make -j 5 # "msbuild warnings.sln" for MSVC
Warnings is continually built with the following compiler and compiler versions:
- MinGW 5.3.0 (MXE, MinGW, and MSYS2)
- Visual Studio 14 2015
- Visual Studio 15 2017
- Alex Huszagh
Warnings is forked from leathers, written by Ruslan Baratov, who has no affiliation with this project.
BSD 2-Clause, see license.