Skip to content

Fix misc. warnings#667

Merged
mtrmac merged 4 commits into
podman-container-tools:mainfrom
mtrmac:warnings
Feb 23, 2026
Merged

Fix misc. warnings#667
mtrmac merged 4 commits into
podman-container-tools:mainfrom
mtrmac:warnings

Conversation

@mtrmac

@mtrmac mtrmac commented Feb 18, 2026

Copy link
Copy Markdown
Contributor

This is annoying me in an IDE, let’s clean that up.

@github-actions github-actions Bot added storage Related to "storage" package common Related to "common" package image Related to "image" package labels Feb 18, 2026
@packit-as-a-service

Copy link
Copy Markdown

Packit jobs failed. @containers/packit-build please check.

2 similar comments
@packit-as-a-service

Copy link
Copy Markdown

Packit jobs failed. @containers/packit-build please check.

@packit-as-a-service

Copy link
Copy Markdown

Packit jobs failed. @containers/packit-build please check.

@lsm5

lsm5 commented Feb 19, 2026

Copy link
Copy Markdown
Contributor

/packit rebuild-failed

@packit-as-a-service

Copy link
Copy Markdown

Account lsm5 has no write access nor is author of PR!

@lsm5 lsm5 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

I cannot restart packit jobs here, so one of the admins can retry using my comment above.

@Luap99

Luap99 commented Feb 23, 2026

Copy link
Copy Markdown
Member

cross builds are failing

Comment thread storage/pkg/archive/archive_windows.go Outdated
}

func handleLChmod(hdr *tar.Header, path string, hdrInfo os.FileInfo, forceMask *os.FileMode) error {
func handleLChmod(_ *tar.Header, _, _ string, _ os.FileInfo, _ *os.FileMode) error {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the issue ^^^ (extra string argument) which causes cross job to fail on Windows

@kolyshkin kolyshkin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, in cases all arguments are unused, you can omit _ entirely. E.g.:

-func resetImmutable(_ string, _ *os.FileInfo) error {
+func resetImmutable(string, *os.FileInfo) error {

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
@mtrmac mtrmac merged commit ed7ccf9 into podman-container-tools:main Feb 23, 2026
37 checks passed
@mtrmac mtrmac deleted the warnings branch February 23, 2026 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

common Related to "common" package image Related to "image" package storage Related to "storage" package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants