From 0b4deaa12fade653e20ccb4460fc424bef89d4c6 Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Tue, 18 Jan 2022 10:23:38 -0500 Subject: [PATCH] turn off some code-analysis diagnostics --- six/modules/c++/nitro_pch.h | 2 ++ six/modules/c++/scene/framework.h | 2 ++ six/modules/c++/six.sicd/framework.h | 2 ++ six/modules/c++/six.sidd/framework.h | 2 ++ six/modules/c++/six/framework.h | 2 ++ 5 files changed, 10 insertions(+) diff --git a/six/modules/c++/nitro_pch.h b/six/modules/c++/nitro_pch.h index f0d8ee33e..1288d5209 100644 --- a/six/modules/c++/nitro_pch.h +++ b/six/modules/c++/nitro_pch.h @@ -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 #include diff --git a/six/modules/c++/scene/framework.h b/six/modules/c++/scene/framework.h index 4c95b1cf9..9d701ce72 100644 --- a/six/modules/c++/scene/framework.h +++ b/six/modules/c++/scene/framework.h @@ -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 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 '..' diff --git a/six/modules/c++/six.sicd/framework.h b/six/modules/c++/six.sicd/framework.h index 3e3fcac61..be8cc2893 100644 --- a/six/modules/c++/six.sicd/framework.h +++ b/six/modules/c++/six.sicd/framework.h @@ -24,6 +24,8 @@ #pragma warning(disable: 26401) // Do not delete a raw pointer that is not an owner(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). diff --git a/six/modules/c++/six.sidd/framework.h b/six/modules/c++/six.sidd/framework.h index 41f62ba3f..fe7b7b074 100644 --- a/six/modules/c++/six.sidd/framework.h +++ b/six/modules/c++/six.sidd/framework.h @@ -24,6 +24,8 @@ #pragma warning(disable: 26401) // Do not delete a raw pointer that is not an owner(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). diff --git a/six/modules/c++/six/framework.h b/six/modules/c++/six/framework.h index 55c9069c3..cac469dbf 100644 --- a/six/modules/c++/six/framework.h +++ b/six/modules/c++/six/framework.h @@ -24,6 +24,8 @@ #pragma warning(disable: 26401) // Do not delete a raw pointer that is not an owner(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).