Skip to content

Added const reported by cppcheck 2.14 #1008

Added const reported by cppcheck 2.14

Added const reported by cppcheck 2.14 #1008

Triggered via push August 22, 2024 12:53
Status Failure
Total duration 29m 45s
Artifacts

ci.yml

on: push
Matrix: build-linux
Matrix: build-macos
Matrix: build-windows
Fit to window
Zoom out
Zoom in

Annotations

114 errors and 29 warnings
Linux (x64, gcc, wo ssdeep)
no match for ‘operator+’ (operand types are ‘std::__cxx11::basic_string<char>’ and ‘const modsecurity::variables::Variables*’)
Linux (x64, gcc, wo ssdeep)
invalid conversion from ‘const modsecurity::variables::Variables*’ to ‘modsecurity::variables::Variables*’ [-fpermissive]
Linux (x64, gcc, wo ssdeep)
no match for ‘operator+’ (operand types are ‘std::__cxx11::basic_string<char>’ and ‘const modsecurity::variables::Variables*’)
Linux (x64, gcc, wo ssdeep)
invalid conversion from ‘const modsecurity::variables::Variables*’ to ‘modsecurity::variables::Variables*’ [-fpermissive]
Linux (x64, gcc, wo ssdeep)
Process completed with exit code 2.
Linux (x64, clang, wo lua)
The job was canceled because "ubuntu-22_04_x64_amd64__7" failed.
Linux (x64, gcc, with lmdb)
The job was canceled because "ubuntu-22_04_x64_amd64__7" failed.
Linux (x64, clang, wo curl)
The job was canceled because "ubuntu-22_04_x64_amd64__7" failed.
Linux (x64, gcc, with pcre2)
The job was canceled because "ubuntu-22_04_x64_amd64__7" failed.
Linux (x64, clang, wo libxml)
The job was canceled because "ubuntu-22_04_x64_amd64__7" failed.
Linux (x64, clang, wo geoip)
The job was canceled because "ubuntu-22_04_x64_amd64__7" failed.
Linux (x64, clang, wo maxmind)
The job was canceled because "ubuntu-22_04_x64_amd64__7" failed.
Linux (x64, clang, wo ssdeep)
The job was canceled because "ubuntu-22_04_x64_amd64__7" failed.
Linux (x64, clang, with lmdb)
The job was canceled because "ubuntu-22_04_x64_amd64__7" failed.
Linux (x64, clang, with parser generation)
The job was canceled because "ubuntu-22_04_x64_amd64__7" failed.
Linux (x64, clang, with pcre2)
The job was canceled because "ubuntu-22_04_x64_amd64__7" failed.
Linux (x64, gcc, with parser generation)
The job was canceled because "ubuntu-22_04_x64_amd64__7" failed.
Linux (x32, clang, wo maxmind)
The job was canceled because "ubuntu-22_04_x64_amd64__7" failed.
Linux (x32, clang, wo maxmind)
The operation was canceled.
Linux (x32, clang, with lmdb)
The job was canceled because "ubuntu-22_04_x64_amd64__7" failed.
Linux (x32, clang, with lmdb)
The operation was canceled.
Linux (x32, gcc, wo lua)
The job was canceled because "ubuntu-22_04_x64_amd64__7" failed.
Linux (x32, gcc, wo lua)
The operation was canceled.
Linux (x32, gcc, wo maxmind)
The job was canceled because "ubuntu-22_04_x64_amd64__7" failed.
Linux (x32, gcc, wo maxmind)
The operation was canceled.
Linux (x64, gcc, wo lua)
The job was canceled because "ubuntu-22_04_x64_amd64__7" failed.
Linux (x64, gcc, wo lua)
no match for ‘operator+’ (operand types are ‘std::__cxx11::basic_string<char>’ and ‘const modsecurity::variables::Variables*’)
Linux (x64, gcc, wo lua)
invalid conversion from ‘const modsecurity::variables::Variables*’ to ‘modsecurity::variables::Variables*’ [-fpermissive]
Linux (x64, gcc, wo lua)
no match for ‘operator+’ (operand types are ‘std::__cxx11::basic_string<char>’ and ‘const modsecurity::variables::Variables*’)
Linux (x64, gcc, wo lua)
invalid conversion from ‘const modsecurity::variables::Variables*’ to ‘modsecurity::variables::Variables*’ [-fpermissive]
Linux (x64, gcc, wo lua)
Process completed with exit code 2.
Linux (x64, gcc, wo maxmind)
The job was canceled because "ubuntu-22_04_x64_amd64__7" failed.
Linux (x64, gcc, wo maxmind)
The operation was canceled.
Linux (x32, clang, with pcre2)
The job was canceled because "ubuntu-22_04_x64_amd64__7" failed.
Linux (x32, clang, with pcre2)
The operation was canceled.
Linux (x32, gcc, wo libxml)
The job was canceled because "ubuntu-22_04_x64_amd64__7" failed.
Linux (x32, gcc, wo libxml)
The operation was canceled.
Linux (x32, gcc, with pcre2)
The job was canceled because "ubuntu-22_04_x64_amd64__7" failed.
Linux (x32, gcc, with pcre2)
The operation was canceled.
Linux (x32, clang, with parser generation)
The job was canceled because "ubuntu-22_04_x64_amd64__7" failed.
Linux (x32, clang, with parser generation)
The operation was canceled.
Linux (x64, gcc, wo libxml)
The job was canceled because "ubuntu-22_04_x64_amd64__7" failed.
Linux (x64, gcc, wo libxml)
The operation was canceled.
Linux (x32, clang, wo curl)
The job was canceled because "ubuntu-22_04_x64_amd64__7" failed.
Linux (x32, clang, wo curl)
The operation was canceled.
Linux (x32, clang, wo libxml)
The job was canceled because "ubuntu-22_04_x64_amd64__7" failed.
Linux (x32, clang, wo libxml)
The operation was canceled.
Linux (x64, gcc, wo geoip)
The job was canceled because "ubuntu-22_04_x64_amd64__7" failed.
Linux (x64, gcc, wo geoip)
no match for ‘operator+’ (operand types are ‘std::__cxx11::basic_string<char>’ and ‘const modsecurity::variables::Variables*’)
Linux (x64, gcc, wo geoip)
invalid conversion from ‘const modsecurity::variables::Variables*’ to ‘modsecurity::variables::Variables*’ [-fpermissive]
Linux (x64, gcc, wo geoip)
no match for ‘operator+’ (operand types are ‘std::__cxx11::basic_string<char>’ and ‘const modsecurity::variables::Variables*’)
Linux (x64, gcc, wo geoip)
invalid conversion from ‘const modsecurity::variables::Variables*’ to ‘modsecurity::variables::Variables*’ [-fpermissive]
Linux (x64, gcc, wo geoip)
The operation was canceled.
Linux (x32, gcc, with parser generation)
The job was canceled because "ubuntu-22_04_x64_amd64__7" failed.
Linux (x32, gcc, with parser generation)
The operation was canceled.
Linux (x32, gcc, with lmdb)
The job was canceled because "ubuntu-22_04_x64_amd64__7" failed.
Linux (x32, gcc, with lmdb)
The operation was canceled.
Linux (x64, gcc, wo curl)
The job was canceled because "ubuntu-22_04_x64_amd64__7" failed.
Linux (x64, gcc, wo curl)
no match for ‘operator+’ (operand types are ‘std::__cxx11::basic_string<char>’ and ‘const modsecurity::variables::Variables*’)
Linux (x64, gcc, wo curl)
invalid conversion from ‘const modsecurity::variables::Variables*’ to ‘modsecurity::variables::Variables*’ [-fpermissive]
Linux (x64, gcc, wo curl)
no match for ‘operator+’ (operand types are ‘std::__cxx11::basic_string<char>’ and ‘const modsecurity::variables::Variables*’)
Linux (x64, gcc, wo curl)
invalid conversion from ‘const modsecurity::variables::Variables*’ to ‘modsecurity::variables::Variables*’ [-fpermissive]
Linux (x64, gcc, wo curl)
The operation was canceled.
Linux (x32, gcc, wo curl)
The job was canceled because "ubuntu-22_04_x64_amd64__7" failed.
Linux (x32, gcc, wo curl)
no match for ‘operator+’ (operand types are ‘std::__cxx11::basic_string<char>’ and ‘const modsecurity::variables::Variables*’)
Linux (x32, gcc, wo curl)
invalid conversion from ‘const modsecurity::variables::Variables*’ to ‘modsecurity::variables::Variables*’ [-fpermissive]
Linux (x32, gcc, wo curl)
no match for ‘operator+’ (operand types are ‘std::__cxx11::basic_string<char>’ and ‘const modsecurity::variables::Variables*’)
Linux (x32, gcc, wo curl)
invalid conversion from ‘const modsecurity::variables::Variables*’ to ‘modsecurity::variables::Variables*’ [-fpermissive]
Linux (x32, gcc, wo curl)
The operation was canceled.
Linux (x32, clang, wo lua)
The job was canceled because "ubuntu-22_04_x64_amd64__7" failed.
Linux (x32, clang, wo lua)
The operation was canceled.
macOS (with lmdb)
invalid operands to binary expression ('basic_string<char, char_traits<char>, allocator<char>>' and 'const variables::Variables *')
macOS (with lmdb)
invalid operands to binary expression ('basic_string<char, char_traits<char>, allocator<char>>' and 'const variables::Variables *')
macOS (with lmdb)
Process completed with exit code 2.
macOS (wo lua)
The job was canceled because "macos-14_with_lmdb_--with" failed.
macOS (wo libxml)
The job was canceled because "macos-14_with_lmdb_--with" failed.
macOS (wo maxmind)
The job was canceled because "macos-14_with_lmdb_--with" failed.
macOS (wo ssdeep)
The job was canceled because "macos-14_with_lmdb_--with" failed.
macOS (with pcre2)
The job was canceled because "macos-14_with_lmdb_--with" failed.
macOS (with pcre2)
invalid operands to binary expression ('basic_string<char, char_traits<char>, allocator<char>>' and 'const variables::Variables *')
macOS (with pcre2)
invalid operands to binary expression ('basic_string<char, char_traits<char>, allocator<char>>' and 'const variables::Variables *')
macOS (with pcre2)
Process completed with exit code 2.
macOS (wo curl)
The job was canceled because "macos-14_with_lmdb_--with" failed.
macOS (wo curl)
invalid operands to binary expression ('basic_string<char, char_traits<char>, allocator<char>>' and 'const variables::Variables *')
macOS (wo curl)
invalid operands to binary expression ('basic_string<char, char_traits<char>, allocator<char>>' and 'const variables::Variables *')
macOS (wo curl)
Process completed with exit code 2.
macOS (with parser generation)
The job was canceled because "macos-14_with_lmdb_--with" failed.
macOS (with parser generation)
invalid operands to binary expression ('basic_string<char, char_traits<char>, allocator<char>>' and 'const variables::Variables *')
macOS (with parser generation)
invalid operands to binary expression ('basic_string<char, char_traits<char>, allocator<char>>' and 'const variables::Variables *')
macOS (with parser generation)
The operation was canceled.
macOS (wo geoip)
The job was canceled because "macos-14_with_lmdb_--with" failed.
macOS (wo geoip)
invalid operands to binary expression ('basic_string<char, char_traits<char>, allocator<char>>' and 'const variables::Variables *')
macOS (wo geoip)
invalid operands to binary expression ('basic_string<char, char_traits<char>, allocator<char>>' and 'const variables::Variables *')
macOS (wo geoip)
The operation was canceled.
Windows (x64, wo libxml): src/rule_with_operator.cc#L244
binary '+': no operator found which takes a right-hand operand of type 'const modsecurity::variables::Variables *' (or there is no acceptable conversion) [D:\a\ModSecurity\ModSecurity\build\win32\build\libModSecurity.vcxproj]
Windows (x64, wo libxml): src/rule_with_operator.cc#L244
'modsecurity::Transaction::debug': function does not take 1 arguments [D:\a\ModSecurity\ModSecurity\build\win32\build\libModSecurity.vcxproj]
Windows (x64, wo libxml): src/rule_with_operator.cc#L251
binary '+': no operator found which takes a right-hand operand of type 'const modsecurity::variables::Variables *' (or there is no acceptable conversion) [D:\a\ModSecurity\ModSecurity\build\win32\build\libModSecurity.vcxproj]
Windows (x64, wo libxml): src/rule_with_operator.cc#L251
'modsecurity::Transaction::debug': function does not take 1 arguments [D:\a\ModSecurity\ModSecurity\build\win32\build\libModSecurity.vcxproj]
Windows (x64, wo libxml)
Process completed with exit code 1.
Windows (x64, wo curl)
The job was canceled because "windows-2022_x64_x86_64_5" failed.
Windows (x64, wo curl): src/rule_with_operator.cc#L244
binary '+': no operator found which takes a right-hand operand of type 'const modsecurity::variables::Variables *' (or there is no acceptable conversion) [D:\a\ModSecurity\ModSecurity\build\win32\build\libModSecurity.vcxproj]
Windows (x64, wo curl): src/rule_with_operator.cc#L244
'modsecurity::Transaction::debug': function does not take 1 arguments [D:\a\ModSecurity\ModSecurity\build\win32\build\libModSecurity.vcxproj]
Windows (x64, wo curl): src/rule_with_operator.cc#L251
binary '+': no operator found which takes a right-hand operand of type 'const modsecurity::variables::Variables *' (or there is no acceptable conversion) [D:\a\ModSecurity\ModSecurity\build\win32\build\libModSecurity.vcxproj]
Windows (x64, wo curl): src/rule_with_operator.cc#L251
'modsecurity::Transaction::debug': function does not take 1 arguments [D:\a\ModSecurity\ModSecurity\build\win32\build\libModSecurity.vcxproj]
Windows (x64, wo curl)
The operation was canceled.
Windows (x64, full)
The job was canceled because "windows-2022_x64_x86_64_5" failed.
Windows (x64, full)
The operation was canceled.
Windows (x64, wo maxmind)
The job was canceled because "windows-2022_x64_x86_64_5" failed.
Windows (x64, wo maxmind)
The operation was canceled.
Windows (x64, wo lua)
The job was canceled because "windows-2022_x64_x86_64_5" failed.
Windows (x64, wo lua)
The operation was canceled.
Windows (x64, with lmdb)
The job was canceled because "windows-2022_x64_x86_64_5" failed.
Windows (x64, with lmdb)
The operation was canceled.
cppcheck
Process completed with exit code 2.
macOS (with lmdb)
geoip has been deprecated because it has an archived upstream repository! It will be disabled on 2024-12-12.
macOS (with pcre2)
geoip has been deprecated because it has an archived upstream repository! It will be disabled on 2024-12-12.
macOS (wo curl)
geoip has been deprecated because it has an archived upstream repository! It will be disabled on 2024-12-12.
macOS (with parser generation)
geoip has been deprecated because it has an archived upstream repository! It will be disabled on 2024-12-12.
macOS (wo geoip)
geoip has been deprecated because it has an archived upstream repository! It will be disabled on 2024-12-12.
Windows (x64, wo libxml)
'=': conversion from 'Poco::Int64' to 'long', possible loss of data [C:\Users\runneradmin\.conan2\p\b\poco36a1d55eff24a\b\build\Data\PostgreSQL\DataPostgreSQL.vcxproj]
Windows (x64, wo libxml)
'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\runneradmin\.conan2\p\b\poco36a1d55eff24a\b\build\Data\PostgreSQL\DataPostgreSQL.vcxproj]
Windows (x64, wo libxml)
'argument': conversion from 'std::streamoff' to 'DWORD', possible loss of data [C:\Users\runneradmin\.conan2\p\b\poco36a1d55eff24a\b\build\Net\Net.vcxproj]
Windows (x64, wo libxml)
'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\runneradmin\.conan2\p\b\poco36a1d55eff24a\b\build\NetSSL_OpenSSL\NetSSL.vcxproj]
Windows (x64, wo curl)
'=': conversion from 'Poco::Int64' to 'long', possible loss of data [C:\Users\runneradmin\.conan2\p\b\pocof724a3da87272\b\build\Data\PostgreSQL\DataPostgreSQL.vcxproj]
Windows (x64, wo curl)
'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\runneradmin\.conan2\p\b\pocof724a3da87272\b\build\Data\PostgreSQL\DataPostgreSQL.vcxproj]
Windows (x64, wo curl)
'argument': conversion from 'std::streamoff' to 'DWORD', possible loss of data [C:\Users\runneradmin\.conan2\p\b\pocof724a3da87272\b\build\Net\Net.vcxproj]
Windows (x64, wo curl)
'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\runneradmin\.conan2\p\b\pocof724a3da87272\b\build\NetSSL_OpenSSL\NetSSL.vcxproj]
Windows (x64, full)
'=': conversion from 'Poco::Int64' to 'long', possible loss of data [C:\Users\runneradmin\.conan2\p\b\pococf101bfc2bdd0\b\build\Data\PostgreSQL\DataPostgreSQL.vcxproj]
Windows (x64, full)
'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\runneradmin\.conan2\p\b\pococf101bfc2bdd0\b\build\Data\PostgreSQL\DataPostgreSQL.vcxproj]
Windows (x64, full)
'argument': conversion from 'std::streamoff' to 'DWORD', possible loss of data [C:\Users\runneradmin\.conan2\p\b\pococf101bfc2bdd0\b\build\Net\Net.vcxproj]
Windows (x64, full)
'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\runneradmin\.conan2\p\b\pococf101bfc2bdd0\b\build\NetSSL_OpenSSL\NetSSL.vcxproj]
Windows (x64, wo maxmind)
'=': conversion from 'Poco::Int64' to 'long', possible loss of data [C:\Users\runneradmin\.conan2\p\b\poco7e3569d33bd2d\b\build\Data\PostgreSQL\DataPostgreSQL.vcxproj]
Windows (x64, wo maxmind)
'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\runneradmin\.conan2\p\b\poco7e3569d33bd2d\b\build\Data\PostgreSQL\DataPostgreSQL.vcxproj]
Windows (x64, wo maxmind)
'argument': conversion from 'std::streamoff' to 'DWORD', possible loss of data [C:\Users\runneradmin\.conan2\p\b\poco7e3569d33bd2d\b\build\Net\Net.vcxproj]
Windows (x64, wo maxmind)
'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\runneradmin\.conan2\p\b\poco7e3569d33bd2d\b\build\NetSSL_OpenSSL\NetSSL.vcxproj]
Windows (x64, wo lua)
'=': conversion from 'Poco::Int64' to 'long', possible loss of data [C:\Users\runneradmin\.conan2\p\b\pococf4dd20f3dab3\b\build\Data\PostgreSQL\DataPostgreSQL.vcxproj]
Windows (x64, wo lua)
'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\runneradmin\.conan2\p\b\pococf4dd20f3dab3\b\build\Data\PostgreSQL\DataPostgreSQL.vcxproj]
Windows (x64, wo lua)
'argument': conversion from 'std::streamoff' to 'DWORD', possible loss of data [C:\Users\runneradmin\.conan2\p\b\pococf4dd20f3dab3\b\build\Net\Net.vcxproj]
Windows (x64, wo lua)
'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\runneradmin\.conan2\p\b\pococf4dd20f3dab3\b\build\NetSSL_OpenSSL\NetSSL.vcxproj]
Windows (x64, with lmdb)
'=': conversion from 'Poco::Int64' to 'long', possible loss of data [C:\Users\runneradmin\.conan2\p\b\poco60b54bc37f478\b\build\Data\PostgreSQL\DataPostgreSQL.vcxproj]
Windows (x64, with lmdb)
'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\runneradmin\.conan2\p\b\poco60b54bc37f478\b\build\Data\PostgreSQL\DataPostgreSQL.vcxproj]
Windows (x64, with lmdb)
'argument': conversion from 'std::streamoff' to 'DWORD', possible loss of data [C:\Users\runneradmin\.conan2\p\b\poco60b54bc37f478\b\build\Net\Net.vcxproj]
Windows (x64, with lmdb)
'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [C:\Users\runneradmin\.conan2\p\b\poco60b54bc37f478\b\build\NetSSL_OpenSSL\NetSSL.vcxproj]