Skip to content

Fix coverity warnings #1757

Fix coverity warnings

Fix coverity warnings #1757

Triggered via pull request February 25, 2025 08:49
@metsmametsma
synchronize #661
coverity_scan
Status Success
Total duration 12m 5s
Artifacts 12

build.yml

on: pull_request
Deploy pages
0s
Deploy pages
Run Coverity tests
0s
Run Coverity tests
Run CodeQL tests
3m 18s
Run CodeQL tests
Matrix: android
Matrix: fedora
Matrix: macos
Matrix: ubuntu
Matrix: Build on Windows
Fit to window
Zoom out
Zoom in

Annotations

60 errors and 30 warnings
Build on Windows (143, arm64): src/util/memory.h#L72
use of undefined type 'digidoc::free_deleter_t<void (__cdecl &)(TS_TST_INFO *)>'
Build on Windows (143, arm64): src/util/memory.h#L72
syntax error: identifier 'type'
Build on Windows (143, arm64): src/util/memory.h#L73
'T': undeclared identifier
Build on Windows (143, arm64): src/util/memory.h#L73
'std::unique_ptr': 'T' is not a valid template type argument for parameter '_Ty'
Build on Windows (143, arm64): src/util/memory.h#L73
cannot deduce template arguments for 'std::unique_ptr'
Build on Windows (143, arm64): src/util/memory.h#L73
'std::unique_ptr<_Ty,_Dx> std::unique_ptr(std::nullptr_t) noexcept': could not deduce template argument for '_Ty'
Build on Windows (143, arm64): src/util/memory.h#L73
'std::unique_ptr<_Ty,_Dx> std::unique_ptr(void) noexcept': expects 0 arguments - 1 provided
Build on Windows (143, arm64): src/util/memory.h#L73
'std::unique_ptr<_Ty,_Dx> std::unique_ptr(std::unique_ptr<_Ty,_Dx>)': could not deduce template argument for 'std::unique_ptr<_Ty,_Dx>' from 'nullptr'
Build on Windows (143, arm64): src/crypto/TS.cpp#L182
'void': all return expressions must deduce to the same type: previously it was 'std::unique_ptr<T,digidoc::free_deleter<void TS_TST_INFO_free(TS_TST_INFO *)>>'
Build on Windows (143, arm64): src/crypto/TS.cpp#L182
'return': cannot convert from 'void' to 'std::unique_ptr<T,digidoc::free_deleter<void TS_TST_INFO_free(TS_TST_INFO *)>>'
Build on Windows (143, x86): src/util/memory.h#L72
use of undefined type 'digidoc::free_deleter_t<void (__cdecl &)(TS_TST_INFO *)>'
Build on Windows (143, x86): src/util/memory.h#L72
syntax error: identifier 'type'
Build on Windows (143, x86): src/util/memory.h#L73
'T': undeclared identifier
Build on Windows (143, x86): src/util/memory.h#L73
'std::unique_ptr': 'T' is not a valid template type argument for parameter '_Ty'
Build on Windows (143, x86): src/util/memory.h#L73
cannot deduce template arguments for 'std::unique_ptr'
Build on Windows (143, x86): src/util/memory.h#L73
'std::unique_ptr<_Ty,_Dx> std::unique_ptr(std::nullptr_t) noexcept': could not deduce template argument for '_Ty'
Build on Windows (143, x86): src/util/memory.h#L73
'std::unique_ptr<_Ty,_Dx> std::unique_ptr(void) noexcept': expects 0 arguments - 1 provided
Build on Windows (143, x86): src/util/memory.h#L73
'std::unique_ptr<_Ty,_Dx> std::unique_ptr(std::unique_ptr<_Ty,_Dx>)': could not deduce template argument for 'std::unique_ptr<_Ty,_Dx>' from 'nullptr'
Build on Windows (143, x86): src/crypto/TS.cpp#L182
'void': all return expressions must deduce to the same type: previously it was 'std::unique_ptr<T,digidoc::free_deleter<void TS_TST_INFO_free(TS_TST_INFO *)>>'
Build on Windows (143, x86): src/crypto/TS.cpp#L182
'return': cannot convert from 'void' to 'std::unique_ptr<T,digidoc::free_deleter<void TS_TST_INFO_free(TS_TST_INFO *)>>'
Build on Windows (143, x64): src/util/memory.h#L72
use of undefined type 'digidoc::free_deleter_t<void (__cdecl &)(TS_TST_INFO *)>'
Build on Windows (143, x64): src/util/memory.h#L72
syntax error: identifier 'type'
Build on Windows (143, x64): src/util/memory.h#L73
'T': undeclared identifier
Build on Windows (143, x64): src/util/memory.h#L73
'std::unique_ptr': 'T' is not a valid template type argument for parameter '_Ty'
Build on Windows (143, x64): src/util/memory.h#L73
cannot deduce template arguments for 'std::unique_ptr'
Build on Windows (143, x64): src/util/memory.h#L73
'std::unique_ptr<_Ty,_Dx> std::unique_ptr(std::nullptr_t) noexcept': could not deduce template argument for '_Ty'
Build on Windows (143, x64): src/util/memory.h#L73
'std::unique_ptr<_Ty,_Dx> std::unique_ptr(void) noexcept': expects 0 arguments - 1 provided
Build on Windows (143, x64): src/util/memory.h#L73
'std::unique_ptr<_Ty,_Dx> std::unique_ptr(std::unique_ptr<_Ty,_Dx>)': could not deduce template argument for 'std::unique_ptr<_Ty,_Dx>' from 'nullptr'
Build on Windows (143, x64): src/crypto/TS.cpp#L182
'void': all return expressions must deduce to the same type: previously it was 'std::unique_ptr<T,digidoc::free_deleter<void TS_TST_INFO_free(TS_TST_INFO *)>>'
Build on Windows (143, x64): src/crypto/TS.cpp#L182
'return': cannot convert from 'void' to 'std::unique_ptr<T,digidoc::free_deleter<void TS_TST_INFO_free(TS_TST_INFO *)>>'
Build on Windows (142, arm64): src/util/memory.h#L72
use of undefined type 'digidoc::free_deleter_t<void (__cdecl &)(TS_TST_INFO *)>'
Build on Windows (142, arm64): src/crypto/TS.cpp#L182
syntax error: identifier 'type'
Build on Windows (142, arm64): src/util/memory.h#L73
'T': undeclared identifier
Build on Windows (142, arm64): src/util/memory.h#L73
'std::unique_ptr': 'T' is not a valid template type argument for parameter '_Ty'
Build on Windows (142, arm64): src/util/memory.h#L73
cannot deduce template arguments for 'std::unique_ptr'
Build on Windows (142, arm64): src/util/memory.h#L73
'std::unique_ptr<_Ty,_Dx> std::unique_ptr(std::nullptr_t) noexcept': could not deduce template argument for '_Ty'
Build on Windows (142, arm64): src/util/memory.h#L73
'std::unique_ptr<_Ty,_Dx> std::unique_ptr(void) noexcept': expects 0 arguments - 1 provided
Build on Windows (142, arm64): src/util/memory.h#L73
'std::unique_ptr<_Ty,_Dx> std::unique_ptr(std::unique_ptr<_Ty,_Dx>)': could not deduce template argument for 'std::unique_ptr<_Ty,_Dx>' from 'nullptr'
Build on Windows (142, arm64): src/util/memory.h#L73
'std::unique_ptr<_Ty,_Dx> std::unique_ptr(std::unique_ptr<_Ty,_Dx>)': could not deduce template argument for 'std::unique_ptr<_Ty,_Dx>' from 'nullptr'
Build on Windows (142, arm64): src/crypto/TS.cpp#L182
'void': all return expressions must deduce to the same type: previously it was 'std::unique_ptr<T,digidoc::free_deleter<void TS_TST_INFO_free(TS_TST_INFO *)>>'
Build on Windows (142, x86): src/util/memory.h#L72
use of undefined type 'digidoc::free_deleter_t<void (__cdecl &)(TS_TST_INFO *)>'
Build on Windows (142, x86): src/crypto/TS.cpp#L182
syntax error: identifier 'type'
Build on Windows (142, x86): src/util/memory.h#L73
'T': undeclared identifier
Build on Windows (142, x86): src/util/memory.h#L73
'std::unique_ptr': 'T' is not a valid template type argument for parameter '_Ty'
Build on Windows (142, x86): src/util/memory.h#L73
cannot deduce template arguments for 'std::unique_ptr'
Build on Windows (142, x86): src/util/memory.h#L73
'std::unique_ptr<_Ty,_Dx> std::unique_ptr(std::nullptr_t) noexcept': could not deduce template argument for '_Ty'
Build on Windows (142, x86): src/util/memory.h#L73
'std::unique_ptr<_Ty,_Dx> std::unique_ptr(void) noexcept': expects 0 arguments - 1 provided
Build on Windows (142, x86): src/util/memory.h#L73
'std::unique_ptr<_Ty,_Dx> std::unique_ptr(std::unique_ptr<_Ty,_Dx>)': could not deduce template argument for 'std::unique_ptr<_Ty,_Dx>' from 'nullptr'
Build on Windows (142, x86): src/util/memory.h#L73
'std::unique_ptr<_Ty,_Dx> std::unique_ptr(std::unique_ptr<_Ty,_Dx>)': could not deduce template argument for 'std::unique_ptr<_Ty,_Dx>' from 'nullptr'
Build on Windows (142, x86): src/crypto/TS.cpp#L182
'void': all return expressions must deduce to the same type: previously it was 'std::unique_ptr<T,digidoc::free_deleter<void TS_TST_INFO_free(TS_TST_INFO *)>>'
Build on Windows (142, x64): src/util/memory.h#L72
use of undefined type 'digidoc::free_deleter_t<void (__cdecl &)(TS_TST_INFO *)>'
Build on Windows (142, x64): src/crypto/TS.cpp#L182
syntax error: identifier 'type'
Build on Windows (142, x64): src/util/memory.h#L73
'T': undeclared identifier
Build on Windows (142, x64): src/util/memory.h#L73
'std::unique_ptr': 'T' is not a valid template type argument for parameter '_Ty'
Build on Windows (142, x64): src/util/memory.h#L73
cannot deduce template arguments for 'std::unique_ptr'
Build on Windows (142, x64): src/util/memory.h#L73
'std::unique_ptr<_Ty,_Dx> std::unique_ptr(std::nullptr_t) noexcept': could not deduce template argument for '_Ty'
Build on Windows (142, x64): src/util/memory.h#L73
'std::unique_ptr<_Ty,_Dx> std::unique_ptr(void) noexcept': expects 0 arguments - 1 provided
Build on Windows (142, x64): src/util/memory.h#L73
'std::unique_ptr<_Ty,_Dx> std::unique_ptr(std::unique_ptr<_Ty,_Dx>)': could not deduce template argument for 'std::unique_ptr<_Ty,_Dx>' from 'nullptr'
Build on Windows (142, x64): src/util/memory.h#L73
'std::unique_ptr<_Ty,_Dx> std::unique_ptr(std::unique_ptr<_Ty,_Dx>)': could not deduce template argument for 'std::unique_ptr<_Ty,_Dx>' from 'nullptr'
Build on Windows (142, x64): src/crypto/TS.cpp#L182
'void': all return expressions must deduce to the same type: previously it was 'std::unique_ptr<T,digidoc::free_deleter<void TS_TST_INFO_free(TS_TST_INFO *)>>'
Build on Windows (143, arm64)
No files were found with the provided path: ./*.msi. No artifacts will be uploaded.
Build on Windows (143, arm64): libdigidocpp.wxs#L87
Files inclusions and exclusions resulted in zero files harvested. Unless that is expected, you should verify your Files paths, inclusions, and exclusions for accuracy.
Build on Windows (143, arm64): libdigidocpp.wxs#L104
Missing directory for harvesting files: Could not find a part of the path 'D:\a\libdigidocpp\libdigidocpp\arm64\etc\digidocpp\schema'.
Build on Windows (143, arm64): libdigidocpp.wxs#L109
Missing directory for harvesting files: Could not find a part of the path 'D:\a\libdigidocpp\libdigidocpp\arm64\include'.
Build on Windows (143, arm64): libdigidocpp.wxs#L110
Missing directory for harvesting files: Could not find a part of the path 'D:\a\libdigidocpp\libdigidocpp\arm64\cmake\libdigidocpp'.
Build on Windows (143, x86): libdigidocpp.wxs#L87
Files inclusions and exclusions resulted in zero files harvested. Unless that is expected, you should verify your Files paths, inclusions, and exclusions for accuracy.
Build on Windows (143, x86): libdigidocpp.wxs#L104
Missing directory for harvesting files: Could not find a part of the path 'D:\a\libdigidocpp\libdigidocpp\x86\etc\digidocpp\schema'.
Build on Windows (143, x86): libdigidocpp.wxs#L109
Missing directory for harvesting files: Could not find a part of the path 'D:\a\libdigidocpp\libdigidocpp\x86\include'.
Build on Windows (143, x86): libdigidocpp.wxs#L110
Missing directory for harvesting files: Could not find a part of the path 'D:\a\libdigidocpp\libdigidocpp\x86\cmake\libdigidocpp'.
Build on Windows (143, x86)
No files were found with the provided path: ./*.msi. No artifacts will be uploaded.
Build on Windows (143, x64)
No files were found with the provided path: ./*.msi. No artifacts will be uploaded.
Build on Windows (143, x64): libdigidocpp.wxs#L87
Files inclusions and exclusions resulted in zero files harvested. Unless that is expected, you should verify your Files paths, inclusions, and exclusions for accuracy.
Build on Windows (143, x64): libdigidocpp.wxs#L104
Missing directory for harvesting files: Could not find a part of the path 'D:\a\libdigidocpp\libdigidocpp\x64\etc\digidocpp\schema'.
Build on Windows (143, x64): libdigidocpp.wxs#L109
Missing directory for harvesting files: Could not find a part of the path 'D:\a\libdigidocpp\libdigidocpp\x64\include'.
Build on Windows (143, x64): libdigidocpp.wxs#L110
Missing directory for harvesting files: Could not find a part of the path 'D:\a\libdigidocpp\libdigidocpp\x64\cmake\libdigidocpp'.
Build on Windows (142, arm64)
No files were found with the provided path: ./*.msi. No artifacts will be uploaded.
Build on Windows (142, arm64): libdigidocpp.wxs#L87
Files inclusions and exclusions resulted in zero files harvested. Unless that is expected, you should verify your Files paths, inclusions, and exclusions for accuracy.
Build on Windows (142, arm64): libdigidocpp.wxs#L104
Missing directory for harvesting files: Could not find a part of the path 'D:\a\libdigidocpp\libdigidocpp\arm64\etc\digidocpp\schema'.
Build on Windows (142, arm64): libdigidocpp.wxs#L109
Missing directory for harvesting files: Could not find a part of the path 'D:\a\libdigidocpp\libdigidocpp\arm64\include'.
Build on Windows (142, arm64): libdigidocpp.wxs#L110
Missing directory for harvesting files: Could not find a part of the path 'D:\a\libdigidocpp\libdigidocpp\arm64\cmake\libdigidocpp'.
Build on Windows (142, x86): libdigidocpp.wxs#L87
Files inclusions and exclusions resulted in zero files harvested. Unless that is expected, you should verify your Files paths, inclusions, and exclusions for accuracy.
Build on Windows (142, x86): libdigidocpp.wxs#L104
Missing directory for harvesting files: Could not find a part of the path 'D:\a\libdigidocpp\libdigidocpp\x86\etc\digidocpp\schema'.
Build on Windows (142, x86): libdigidocpp.wxs#L109
Missing directory for harvesting files: Could not find a part of the path 'D:\a\libdigidocpp\libdigidocpp\x86\include'.
Build on Windows (142, x86): libdigidocpp.wxs#L110
Missing directory for harvesting files: Could not find a part of the path 'D:\a\libdigidocpp\libdigidocpp\x86\cmake\libdigidocpp'.
Build on Windows (142, x86)
No files were found with the provided path: ./*.msi. No artifacts will be uploaded.
Build on Windows (142, x64): libdigidocpp.wxs#L87
Files inclusions and exclusions resulted in zero files harvested. Unless that is expected, you should verify your Files paths, inclusions, and exclusions for accuracy.
Build on Windows (142, x64): libdigidocpp.wxs#L104
Missing directory for harvesting files: Could not find a part of the path 'D:\a\libdigidocpp\libdigidocpp\x64\etc\digidocpp\schema'.
Build on Windows (142, x64): libdigidocpp.wxs#L109
Missing directory for harvesting files: Could not find a part of the path 'D:\a\libdigidocpp\libdigidocpp\x64\include'.
Build on Windows (142, x64): libdigidocpp.wxs#L110
Missing directory for harvesting files: Could not find a part of the path 'D:\a\libdigidocpp\libdigidocpp\x64\cmake\libdigidocpp'.
Build on Windows (142, x64)
No files were found with the provided path: ./*.msi. No artifacts will be uploaded.

Artifacts

Produced during runtime
Name Size
androidarm
9.79 MB
androidarm64
10.8 MB
androidx86_64
11.2 MB
fedora_40
1.43 MB
fedora_41
1.43 MB
fedora_rawhide
1.09 MB
iphoneos
7.81 MB
iphonesimulator
12.2 MB
macos
9.91 MB
ubuntu_22.04
11.5 MB
ubuntu_24.04
11.4 MB
ubuntu_24.10
11.5 MB