diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index af3638a..892ba21 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -30,7 +30,7 @@ jobs: fail-fast: false matrix: toolchain: [ gcc, llvm, intel ] - json_version: [ v3.11.2, v3.8.0 ] + json_version: [ develop, v3.12.0, v3.8.0 ] experimental: [ false ] include: - toolchain: llvm diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 39721bf..80dc756 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/Takishima/cmake-pre-commit-hooks - rev: v1.8.1 + rev: v1.9.6 hooks: - id: clang-format args: @@ -15,19 +15,19 @@ repos: - 'pre-commit' stages: [ manual ] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v6.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-yaml - repo: https://github.com/executablebooks/mdformat - rev: 0.7.16 + rev: 0.7.22 hooks: - id: mdformat additional_dependencies: - mdformat-gfm - mdformat-tables - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.23.0 + rev: 0.34.0 hooks: - id: check-github-workflows diff --git a/CMakeLists.txt b/CMakeLists.txt index 8847ba3..e9df8a2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,7 +42,7 @@ mark_as_advanced(JSON_VALIDATOR_TEST_COVERAGE) if (DEFINED ENV{NLOHMANN_JSON_VERSION}) set(JSON_FETCH_VERSION_DEFAULT $ENV{NLOHMANN_JSON_VERSION}) else () - set(JSON_FETCH_VERSION_DEFAULT v3.11.2) + set(JSON_FETCH_VERSION_DEFAULT v3.12.0) endif () set(JSON_FETCH_VERSION ${JSON_FETCH_VERSION_DEFAULT} CACHE STRING "Fetch nlohmann::json version") diff --git a/src/smtp-address-validator.cpp b/src/smtp-address-validator.cpp index 5ddd811..3b4a461 100644 --- a/src/smtp-address-validator.cpp +++ b/src/smtp-address-validator.cpp @@ -687,7 +687,7 @@ bool is_address(const char *p, const char *pe) const signed char *_keys; const signed char *_acts; unsigned int _nacts; - _resume : { + _resume: { } if (p == pe && p != eof) goto _out; @@ -746,7 +746,7 @@ bool is_address(const char *p, const char *pe) } } - _match : { + _match: { } } cs = (int) _address_cond_targs[_trans]; @@ -785,7 +785,7 @@ bool is_address(const char *p, const char *pe) goto _resume; } } - _out : { + _out: { } } return result;