Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restore "warnings as errors" #407

Merged
merged 70 commits into from
Jan 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
a619451
build with VS2019
Jan 16, 2021
fe7af28
add "Test" directory
Jan 16, 2021
3681761
add WAF to externals/coda-oss for building with Visual Studio
Jan 16, 2021
78f324d
/W3 and no "Warnings as Errors" (for now)
Jan 16, 2021
d5d7546
dummy value for DEFAULT_SCHEMA_PATH
Jan 16, 2021
64e5c20
default value for DEFAULT_SCHEMA_PATH
Jan 16, 2021
1a6b538
"Test" project builds (with all files excluded)
Jan 16, 2021
9ea2d4a
build some cphd unit-tests
Jan 16, 2021
bb907f7
build "cphd" unittests
Jan 16, 2021
0b12bca
run cphd03 unittests
Jan 16, 2021
af8f56e
build "six" unittests
Jan 16, 2021
45f6c11
run six.sidd unittests
Jan 16, 2021
b5415df
build all but the two new six.sicd unttests
Jan 16, 2021
079c211
fix build error on Linux
Jan 16, 2021
8b341df
Merge branch 'master' into develop/main-to-master
Jan 18, 2021
56ec6f4
"scene" changes from main
Jan 18, 2021
7ea6d44
scene/include changes from main
Jan 18, 2021
9ace5f0
scene/tests changes from main
Jan 18, 2021
0c64da1
simple six/source changes from main
Jan 18, 2021
bdbb68f
Merge branch 'master' into develop/main-to-master
Jan 18, 2021
4e4ca03
more six/ changes from "main"
Jan 18, 2021
b6755d3
more six/six changes from "main"
Jan 18, 2021
c92a0f9
tweak XML routines from six/six in "main"
Jan 18, 2021
abe00c4
ReadControl from six/six @ main
Jan 18, 2021
d76e4b0
std::auto_ptr -> mem::auto_ptr for C++17
Jan 18, 2021
ca82882
easy .h changes from six/six @ main
Jan 18, 2021
1de34d6
get six/six closer to "main"
Jan 18, 2021
5832d67
simplify Enums, from "main"
Jan 18, 2021
02b1392
a few more changes from six/six on "main"
Jan 18, 2021
c5e6d86
add std::byte overload from "main"
Jan 18, 2021
7b5746c
Merge branch 'master' into develop/main-to-master
Jan 18, 2021
3f05568
restore setBuffer() utility from "main"
Jan 18, 2021
a4aa930
simple CPP changes from six.sidd/main
Jan 19, 2021
f4e264b
std::auto_ptr -> mem::auto_ptr for C++17
Jan 19, 2021
9fea2f7
six.sidd changes from "main"
Jan 19, 2021
7696286
.h file changes from six.sidd @ main
Jan 19, 2021
f025140
Revert ".h file changes from six.sidd @ main"
Jan 19, 2021
ad372d3
Revert "Revert ".h file changes from six.sidd @ main""
Jan 19, 2021
19869f8
fix six.sidd/tests after last submission
Jan 19, 2021
f756a59
can't use std::make_shared with mem::SharedPtr
Jan 19, 2021
d7726ab
use six/Enum.h to make six.sidd enums
Jan 19, 2021
af6ae36
minimize diffs
Jan 19, 2021
0e184f4
Merge branch 'master' into develop/main-to-master
Jan 19, 2021
c4d8f95
Merge branch 'master' into develop/main-to-master
Jan 20, 2021
22a130a
six.convert changes from "main"
Jan 20, 2021
905b6fc
bring over cphd03 changes from "main"
Jan 20, 2021
e496ae3
instantiate more templates
Jan 20, 2021
0a4164f
cphd changes from "main"
Jan 20, 2021
4d6b3ff
remaining cphd changes from "main"
Jan 20, 2021
c4ee70d
fix build errors on Linux
Jan 20, 2021
7ef3bd7
Merge branch 'master' into develop/main-to-master
Jan 20, 2021
5e08c71
preserve existing interface
Jan 20, 2021
3ae0ae3
gsl::span -> std::span
Jan 20, 2021
c4b3394
gsl::span -> std::span
Jan 20, 2021
b1c5e40
turn on all warnings and "warnings as errors" for code that has been …
Jan 20, 2021
d285c96
Merge branch 'master' into develop/main-to-master
Jan 20, 2021
006a19d
easy CPP changes from six.sicd in "main"
Jan 20, 2021
751055e
more six.sicd changes from "main"
Jan 20, 2021
af82745
fix build error on Linux
Jan 20, 2021
2dbfb03
remaiing code changes from six.sicd on "main" branch
Jan 20, 2021
a4ea9dd
turn on all warnings and "warnings as errors" for six.sicd
Jan 20, 2021
d54e4ee
tests and unittests from six.sicd on "main" branch
Jan 20, 2021
5e8a383
fix build errors on Linux
Jan 20, 2021
a1a5242
need to use mem::SharedPtr instead of std::unique_ptr
Jan 25, 2021
07f4160
Merge branch 'master' into develop/main-to-master
Jan 25, 2021
4029339
projects\csm changes from "main"
Jan 25, 2021
b61316e
"samples" from main branch
Jan 25, 2021
152624f
need to use mem::SharedPtr instead of std::shared_ptr
Jan 25, 2021
bd36218
Merge branch 'master' into develop/main-to-master
Jan 25, 2021
fc04b5d
restore "warnings as errors" from main
Jan 25, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions externals/nitro/modules/c++/nitf-c++.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@
<EnforceTypeConversionRules>true</EnforceTypeConversionRules>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<Optimization>Disabled</Optimization>
<TreatWarningAsError>true</TreatWarningAsError>
</ClCompile>
<Link>
<SubSystem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<ControlFlowGuard>Guard</ControlFlowGuard>
<WarningLevel>Level3</WarningLevel>
<WarningLevel>EnableAllWarnings</WarningLevel>
<TreatWarningAsError>true</TreatWarningAsError>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand Down
1 change: 1 addition & 0 deletions six/modules/c++/samples/check_valid_six.dir/pch.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#pragma warning(disable: 4365) // '...': conversion from '...' to '...', signed / unsigned mismatch
#pragma warning(disable: 5219) // implicit conversion from '...' to '...', possible loss of data
#pragma warning(disable: 4514) // '...': unreferenced inline function has been removed
#pragma warning(disable: 5039) // '...' : pointer or reference to potentially throwing function passed to 'extern "C"' function under -EHc. Undefined behavior may occur if this function throws an exception.

// TODO: get rid of these someday? ... from Visual Studio code-analysis
#pragma warning(disable: 26495) // Variable '...' is uninitialized. Always initialize a member variable(type.6).
Expand Down
3 changes: 2 additions & 1 deletion six/modules/c++/samples/crop_sicd.dir/crop_sicd.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<ControlFlowGuard>Guard</ControlFlowGuard>
<WarningLevel>Level3</WarningLevel>
<WarningLevel>EnableAllWarnings</WarningLevel>
<TreatWarningAsError>true</TreatWarningAsError>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand Down
1 change: 1 addition & 0 deletions six/modules/c++/samples/crop_sicd.dir/pch.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#pragma warning(disable: 4365) // '...': conversion from '...' to '...', signed / unsigned mismatch
#pragma warning(disable: 5219) // implicit conversion from '...' to '...', possible loss of data
#pragma warning(disable: 4514) // '...': unreferenced inline function has been removed
#pragma warning(disable: 5039) // '...' : pointer or reference to potentially throwing function passed to 'extern "C"' function under -EHc. Undefined behavior may occur if this function throws an exception.

// TODO: get rid of these someday? ... from Visual Studio code-analysis
#pragma warning(disable: 26495) // Variable '...' is uninitialized. Always initialize a member variable(type.6).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ namespace convert
*
* Once constructed, it is used just like NITFReadControl
*/
class ConvertingReadControl : public ReadControl
struct ConvertingReadControl : public ReadControl
{
public:
/*!
* Construct ConvertingReadControl
* \param pluginPathname Path to converter plugins
Expand Down Expand Up @@ -94,7 +93,11 @@ class ConvertingReadControl : public ReadControl
* \return pointer to image data
*/

virtual UByte* interleaved(Region& region, size_t imageNumber);
virtual UByte* interleaved(Region& region, size_t imageNumber) override;
virtual void interleaved(Region& region, size_t imageNumber, std::byte*& result) override
{
result = reinterpret_cast<std::byte*>(interleaved(region, imageNumber));
}

/*!
* Convenience method to allow reading entire image with no setup
Expand Down
3 changes: 2 additions & 1 deletion six/modules/c++/six.convert/six.convert.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<ControlFlowGuard>Guard</ControlFlowGuard>
<WarningLevel>Level3</WarningLevel>
<WarningLevel>EnableAllWarnings</WarningLevel>
<TreatWarningAsError>true</TreatWarningAsError>
</ClCompile>
<Link>
<SubSystem>
Expand Down
4 changes: 1 addition & 3 deletions six/modules/c++/six/include/six/ReadControl.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,8 @@ namespace six
* to know that the NITF is split due to technical complications.
*
*/
class ReadControl
struct ReadControl
{
public:

//! Constructor. Null-set the current container reference
ReadControl() :
mContainer(nullptr), mLog(nullptr), mOwnLog(false), mXMLRegistry(nullptr)
Expand Down