Skip to content

Annotate some variables as sometimes-unused#486

Merged
smcv merged 2 commits intocontainers:mainfrom
smcv:unused
May 11, 2022
Merged

Annotate some variables as sometimes-unused#486
smcv merged 2 commits intocontainers:mainfrom
smcv:unused

Conversation

@smcv
Copy link
Copy Markdown
Collaborator

@smcv smcv commented Mar 22, 2022

  • Silence -Wunused-but-set-variable with clang

    This variable is only used for lifetime tracking (autocleanup), but
    clang warns on that.

  • utils: Silence -Wunused-parameter with clang, Meson, and SELinux disabled

    These parameters are unused if SELinux happens to be disabled.


The second commit fixes some non-fatal warnings seen on #478, and the first fixes a related warning seen when I tried to test this.

smcv added 2 commits April 5, 2022 14:34
This variable is only used for lifetime tracking (autocleanup), but
clang warns on that.

Signed-off-by: Simon McVittie <smcv@collabora.com>
…bled

These parameters are unused if SELinux happens to be disabled.

Signed-off-by: Simon McVittie <smcv@collabora.com>
@smcv
Copy link
Copy Markdown
Collaborator Author

smcv commented May 10, 2022

@RyuzakiKK, perhaps you could do some not-a-maintainer review here? The changes are trivial.

@RyuzakiKK
Copy link
Copy Markdown
Contributor

LGTM

@smcv smcv merged commit b9d0ac3 into containers:main May 11, 2022
@smcv
Copy link
Copy Markdown
Collaborator Author

smcv commented May 11, 2022

This is sufficiently trivial that I''ve landed it based on @RyuzakiKK's positive review. Having bubblewrap be warnings-clean is helpful when it's included in a larger project as a submodule.

Please revert if you disagree.

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 this pull request may close these issues.

2 participants