Skip to content

Commit bb48bbd

Browse files
committed
Fixed: static analysis generated warnings
1 parent 130992b commit bb48bbd

4 files changed

Lines changed: 6 additions & 4 deletions

File tree

Codecs/CodecGif/Source/CodecGif.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ namespace IMCodec
5757
struct FrameData
5858
{
5959
GraphicsControlBlock gcb{ 0, false , 0 , -1 };
60-
GifImageDesc imagedesc;
60+
GifImageDesc imagedesc{};
6161
};
6262

6363

Codecs/CodecTiff/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ if (IMCODEC_DISABLE_WARNINGS_EXTERNAL_LIBS)
4343
-Wno-unused-variable
4444
-Wno-reserved-macro-identifier
4545
-Wno-unused-parameter
46+
-Wno-unsafe-buffer-usage
4647
)
4748

4849
target_compile_options(port PRIVATE
@@ -51,6 +52,7 @@ if (IMCODEC_DISABLE_WARNINGS_EXTERNAL_LIBS)
5152
-Wno-reserved-macro-identifier
5253
-Wno-reserved-identifier
5354
-Wno-missing-variable-declarations
55+
-Wno-unsafe-buffer-usage
5456
)
5557
elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
5658
target_compile_options(tiff PRIVATE /wd4996)

ImageCodec/Include/IImagePlugin.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ namespace IMCodec
4747

4848
struct PluginProperties
4949
{
50-
PluginID id;
51-
CodecCapabilities capabilities;
50+
PluginID id{};
51+
CodecCapabilities capabilities{};
5252
std::wstring pluginDescription;
5353
ListxtensionCollection extensionCollection;
5454
};

0 commit comments

Comments
 (0)