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

Fedora 39 based static checks and necessary fixes #5381

Merged
merged 5 commits into from
Nov 21, 2023

Conversation

vpodzime
Copy link
Contributor

No description provided.

The last argument is buffer size into which the string including
the terminating NUL byte has to fit.
The latter is deprecated since curl 7.85.0.
We use the observable name as a suffix for varible names so it
cannot be of the full maximum variable name length. And we should
also be more careful with the lengths of the observables'
descriptions.
Otherwise it fails with the following:
```
  logging.c:330:6: error: conflicting types for 'LogToSystemLogStructured' due to enum/integer mismatch; have 'void(const int, ...)' [-Werror=enum-int-mismatch]
    330 | void LogToSystemLogStructured(const int level, ...)
        |      ^~~~~~~~~~~~~~~~~~~~~~~~
  In file included from logging.c:25:
  ./logging.h:147:6: note: previous declaration of 'LogToSystemLogStructured' with type 'void(LogLevel, ...)'
    147 | void LogToSystemLogStructured(LogLevel level, ...);
        |      ^~~~~~~~~~~~~~~~~~~~~~~~
```
Freshly released, with the latest and greatest tools.
@vpodzime vpodzime force-pushed the master-f39_static_checks branch from b856fee to 032c83f Compare November 20, 2023 14:10
@vpodzime
Copy link
Contributor Author

@cf-bottom jenkins, please

@cf-bottom
Copy link

@vpodzime vpodzime merged commit 027d8b4 into cfengine:master Nov 21, 2023
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants