Skip to content

ClangTidy warnings for cppcoreguidelines-init-variables #1663

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jviotti opened this issue May 23, 2025 · 0 comments · May be fixed by #1698
Open

ClangTidy warnings for cppcoreguidelines-init-variables #1663

jviotti opened this issue May 23, 2025 · 0 comments · May be fixed by #1698

Comments

@jviotti
Copy link
Member

jviotti commented May 23, 2025

/Users/jviotti/Projects/core/src/core/json/json_value.cc:362:10: error: variable 'integral' is not initialized [cppcoreguidelines-init-variables,-warnings-as-errors]
    1 |     Real integral;
      |          ^
      |                   = NAN

/Users/jviotti/Projects/core/src/core/jsonschema/frame.cc:1020:14: error: variable 'standalone' is not initialized [cppcoreguidelines-init-variables,-warnings-as-errors]
 1020 |   const bool standalone{std::all_of(
      |              ^
      |                         = false

/Users/jviotti/Projects/core/src/core/uri/uri.cc:23:7: error: variable 'size' is not initialized [cppcoreguidelines-init-variables,-warnings-as-errors]
   23 |   int size;
      |       ^
      |            = 0

/Users/jviotti/Projects/core/src/core/uri/uri.cc:51:15: error: variable 'error_position' is not initialized [cppcoreguidelines-init-variables,-warnings-as-errors]
   51 |   const char *error_position;
      |               ^
      |                              = nullptr

bavulapati added a commit to bavulapati/core that referenced this issue May 25, 2025
fixes: sourcemeta#1663

Signed-off-by: Balakrishna Avulapati <bavulapati@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant