Skip to content
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

Covscan fixes #336

Open
justin-stephenson opened this issue Nov 23, 2021 · 0 comments
Open

Covscan fixes #336

justin-stephenson opened this issue Nov 23, 2021 · 0 comments

Comments

@justin-stephenson
Copy link
Collaborator

  • First
1. tlog-12/lib/tlog/journal_json_reader.c:0: scope_hint: In function 'tlog_journal_json_reader_init'
2. tlog-12/lib/tlog/journal_json_reader.c:69:17: warning[-Wunused-variable]: unused variable 'namespace'
#      const char *namespace = va_arg(ap, const char *);
#                  ^~~~~~~~~
#    67|       uint64_t until = va_arg(ap, uint64_t);
#    68|       const char * const *match_sym_list = va_arg(ap, const char * const *);
#    69|->     const char *namespace = va_arg(ap, const char *);
#    70|       int sd_rc;
#    71|       tlog_grc grc;
  • Second
1. tlog-12/lib/tlog/journal_json_reader.c:69:17: warning[deadcode.DeadStores]: Value stored to 'namespace' during its initialization is never read
#    67|       uint64_t until = va_arg(ap, uint64_t);
#    68|       const char * const *match_sym_list = va_arg(ap, const char * const *);
#    69|->     const char *namespace = va_arg(ap, const char *);
#    70|       int sd_rc;
#    71|       tlog_grc grc;
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

No branches or pull requests

1 participant