Skip to content

Commit

Permalink
turn off some code-analysis diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Smith committed Jan 18, 2022
1 parent 8797cd0 commit 0b4deaa
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions six/modules/c++/nitro_pch.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#pragma warning(disable: 26812) // The enum type '...' is unscoped. Prefer '...' over '...' (Enum.3).
#pragma warning(disable: 26455) // Default constructor may not throw.Declare it 'noexcept' (f.6).
#pragma warning(disable: 26458) // Prefer to use gsl::at() instead of unchecked subscript operator (bounds.4).
#pragma warning(disable: 26823) // Dereferencing a possibly null pointer '...' (lifetime.1).
#pragma warning(disable: 26822) // Dereferencing a null pointer 'me' (lifetime.1).

#include <import/str.h>
#include <import/sys.h>
Expand Down
2 changes: 2 additions & 0 deletions six/modules/c++/scene/framework.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
#pragma warning(disable: 26434) // Function '...' hides a non-virtual function '...' (c.128).
#pragma warning(disable: 26409) // Avoid calling new and delete explicitly, use std::make_unique<T> instead (r.11).
#pragma warning(disable: 26458) // Prefer to use gsl::at() instead of unchecked subscript operator (bounds.4).
#pragma warning(disable: 26823) // Dereferencing a possibly null pointer '...' (lifetime.1).
#pragma warning(disable: 26822) // Dereferencing a null pointer 'me' (lifetime.1).

#pragma warning(push)
#pragma warning(disable: 4464) // relative include path contains '..'
Expand Down
2 changes: 2 additions & 0 deletions six/modules/c++/six.sicd/framework.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
#pragma warning(disable: 26401) // Do not delete a raw pointer that is not an owner<T>(i.11).
#pragma warning(disable: 26435) // Function '...' should specify exactly one of '...', '...', or '...' (c.128).
#pragma warning(disable: 26408) // Avoid malloc() and free(), prefer the nothrow version of new with delete (r.10).
#pragma warning(disable: 26823) // Dereferencing a possibly null pointer '...' (lifetime.1).
#pragma warning(disable: 26822) // Dereferencing a null pointer 'me' (lifetime.1).

// TODO: get rid of these someday? ... from Visual Studio code-analysis
#pragma warning(disable: 26440) // Function '...' can be declared '...' (f.6).
Expand Down
2 changes: 2 additions & 0 deletions six/modules/c++/six.sidd/framework.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
#pragma warning(disable: 26401) // Do not delete a raw pointer that is not an owner<T>(i.11).
#pragma warning(disable: 26435) // Function '...' should specify exactly one of '...', '...', or '...' (c.128).
#pragma warning(disable: 26408) // Avoid malloc() and free(), prefer the nothrow version of new with delete (r.10).
#pragma warning(disable: 26823) // Dereferencing a possibly null pointer '...' (lifetime.1).
#pragma warning(disable: 26822) // Dereferencing a null pointer 'me' (lifetime.1).

// TODO: get rid of these someday? ... from Visual Studio code-analysis
#pragma warning(disable: 26440) // Function '...' can be declared '...' (f.6).
Expand Down
2 changes: 2 additions & 0 deletions six/modules/c++/six/framework.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
#pragma warning(disable: 26401) // Do not delete a raw pointer that is not an owner<T>(i.11).
#pragma warning(disable: 26435) // Function '...' should specify exactly one of '...', '...', or '...' (c.128).
#pragma warning(disable: 26408) // Avoid malloc() and free(), prefer the nothrow version of new with delete (r.10).
#pragma warning(disable: 26823) // Dereferencing a possibly null pointer '...' (lifetime.1).
#pragma warning(disable: 26822) // Dereferencing a null pointer 'me' (lifetime.1).

// TODO: get rid of these someday? ... from Visual Studio code-analysis
#pragma warning(disable: 26440) // Function '...' can be declared '...' (f.6).
Expand Down

0 comments on commit 0b4deaa

Please sign in to comment.