Task #91667 - fixed.err
back to task #91667download
Error: COMPILER_WARNING (CWE-563):
OpenJPH-0.22.0/src/core/codestream/ojph_codestream_local.h:43: included_from: Included from here.
OpenJPH-0.22.0/src/core/codestream/ojph_codeblock.cpp:45: included_from: Included from here.
OpenJPH-0.22.0/src/core/codestream/ojph_params_local.h: scope_hint: In constructor ‘ojph::local::param_atk::param_atk(ojph::local::param_atk*, ojph::ui8)’
OpenJPH-0.22.0/src/core/codestream/ojph_params_local.h:1084:28: warning[-Wunused-parameter]: unused parameter ‘top_atk’
# 1084 | param_atk(param_atk *top_atk = NULL, ui8 type = OJPH_ATK_TOP) {
# | ^
# 1082|
# 1083| public: // member functions
# 1084|-> param_atk(param_atk *top_atk = NULL, ui8 type = OJPH_ATK_TOP) {
# 1085| avail = NULL;
# 1086| d = d_store;
Error: COMPILER_WARNING:
OpenJPH-0.22.0/src/core/codestream/ojph_codeblock.cpp:43: included_from: Included from here.
OpenJPH-0.22.0/src/core/common/ojph_mem.h: scope_hint: In member function ‘void ojph::mem_fixed_allocator::alloc()’
OpenJPH-0.22.0/src/core/common/ojph_mem.h:85:20: warning[-Wdelete-incomplete]: deleting ‘void*’ is undefined
# 85 | delete[] store;
# | ^~~~~
# 83| // should have size_data + size_obj <= allocated_data
# 84| if (store)
# 85|-> delete[] store;
# 86| allocated_data = size_data + size_obj;
# 87| allocated_data = allocated_data + (allocated_data + 19) / 20; // 5%