diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index f869140..4186e31 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -41,7 +41,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v6 + uses: actions/checkout@v7 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index a7584fa..a32b788 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -18,7 +18,7 @@ jobs: runs-on: macOS-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Create Build Environment run: cmake -E make_directory ${{github.workspace}}/build diff --git a/.github/workflows/static_check.yml b/.github/workflows/static_check.yml index 08cfcdb..88031f7 100644 --- a/.github/workflows/static_check.yml +++ b/.github/workflows/static_check.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Install OpenCV run: | @@ -58,7 +58,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Download Compile Commands uses: actions/download-artifact@v8 diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 23ff58d..0122120 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Install OpenCV run: | diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 5b4e9b0..f5dc1ed 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -18,7 +18,7 @@ jobs: runs-on: windows-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - name: Create Build Environment run: cmake -E make_directory ${{github.workspace}}/build diff --git a/tools/createsamples/utility.cpp b/tools/createsamples/utility.cpp index b3300a5..c9b6cca 100644 --- a/tools/createsamples/utility.cpp +++ b/tools/createsamples/utility.cpp @@ -516,7 +516,7 @@ CvBackgroundData* cvbgdata = nullptr; static int icvStartSampleDistortion(const char* imgfilename, int bgcolor, int bgthreshold, CvSampleDistortionData* data) { - memset(data, 0, sizeof(*data)); + *data = CvSampleDistortionData{}; data->src = imread(imgfilename, IMREAD_GRAYSCALE); if (!(data->src.empty()) && data->src.type() == CV_8UC1) { int r = 0, c = 0; diff --git a/traincascade/CMakeLists.txt b/traincascade/CMakeLists.txt index df885ef..fde4f60 100644 --- a/traincascade/CMakeLists.txt +++ b/traincascade/CMakeLists.txt @@ -167,6 +167,7 @@ target_compile_options( test_traincascade PRIVATE $<$:/W4 /WX> + $<$:/wd5285> $<$:/Zc:__cplusplus /Zc:preprocessor /Zc:inline> $<$:/w14191 /w14242 /w14254 /w14263 /w14265 /w14266 /w14287> $<$:/w14289 /w14296 /w14311 /w14545 /w14546 /w14547 /w14549>