Alexhuszagh / warnings

C++ cross-compiler warning suppression library.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

warnings

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.

Build Status Build Status Build status GitHub license

Table of Contents

Usage

// 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>

Installation

Simply add the src directory to the compiler include directory path with -I/path/to/src.

Testing

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

Platforms

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

Contributors

  • Alex Huszagh

Warnings is forked from leathers, written by Ruslan Baratov, who has no affiliation with this project.

License

BSD 2-Clause, see license.

About

C++ cross-compiler warning suppression library.

License:Other


Languages

Language:C++ 94.0%Language:C 3.0%Language:CMake 2.9%