Task #52458 - fixed.err

back to task #52458
download
Error: SHELLCHECK_WARNING (CWE-571):
/usr/share/podman/test/system/220-healthcheck.bats:375:11: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  373|   
#  374|   @test "podman healthcheck --health-max-log-size 10" {
#  375|->     local msg="healthmsg-$(random_string)"
#  376|       local ctrname="c-h-$(safename)"
#  377|       _create_container_with_health_log_settings $ctrname $msg "{{.Config.HealthMaxLogSize}}" "--health-max-log-size 10" "10" "HealthMaxLogSize"

Error: SHELLCHECK_WARNING (CWE-571):
/usr/share/podman/test/system/220-healthcheck.bats:391:11: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  389|       local s=$(printf "healthmsg-%1000s")
#  390|       local long_msg=${s// /$(random_string)}
#  391|->     local ctrname="c-h-$(safename)"
#  392|       _create_container_with_health_log_settings $ctrname $long_msg "{{.Config.HealthMaxLogSize}}" "--health-max-log-size 0" "0" "HealthMaxLogSize"
#  393|   

Error: SHELLCHECK_WARNING (CWE-571):
/usr/share/podman/test/system/220-healthcheck.bats:405:11: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  403|   
#  404|   @test "podman healthcheck --health-max-log-size default value (500)" {
#  405|->     local s=$(printf "healthmsg-%1000s")
#  406|       local long_msg=${s// /$(random_string)}
#  407|       local ctrname="c-h-$(safename)"

Error: SHELLCHECK_WARNING (CWE-398):
/usr/share/podman/test/system/220-healthcheck.bats:405:22: warning[SC2183]: This format string has 1 variable, but is passed 0 argument.
#  403|   
#  404|   @test "podman healthcheck --health-max-log-size default value (500)" {
#  405|->     local s=$(printf "healthmsg-%1000s")
#  406|       local long_msg=${s// /$(random_string)}
#  407|       local ctrname="c-h-$(safename)"

Error: SHELLCHECK_WARNING (CWE-571):
/usr/share/podman/test/system/220-healthcheck.bats:407:11: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  405|       local s=$(printf "healthmsg-%1000s")
#  406|       local long_msg=${s// /$(random_string)}
#  407|->     local ctrname="c-h-$(safename)"
#  408|       _create_container_with_health_log_settings $ctrname $long_msg "{{.Config.HealthMaxLogSize}}" "" "500" "HealthMaxLogSize is the expected default"
#  409|   

Error: SHELLCHECK_WARNING (CWE-571):
/usr/share/podman/test/system/220-healthcheck.bats:423:11: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  421|       local TMP_DIR_HEALTHCHECK="$PODMAN_TMPDIR/healthcheck"
#  422|       mkdir $TMP_DIR_HEALTHCHECK
#  423|->     local ctrname="c-h-$(safename)"
#  424|       local msg="healthmsg-$(random_string)"
#  425|       _create_container_with_health_log_settings $ctrname $msg "{{.Config.HealthLogDestination}}" "--health-log-destination $TMP_DIR_HEALTHCHECK" "$TMP_DIR_HEALTHCHECK" "HealthLogDestination"

Error: SHELLCHECK_WARNING (CWE-571):
/usr/share/podman/test/system/220-healthcheck.bats:424:11: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  422|       mkdir $TMP_DIR_HEALTHCHECK
#  423|       local ctrname="c-h-$(safename)"
#  424|->     local msg="healthmsg-$(random_string)"
#  425|       _create_container_with_health_log_settings $ctrname $msg "{{.Config.HealthLogDestination}}" "--health-log-destination $TMP_DIR_HEALTHCHECK" "$TMP_DIR_HEALTHCHECK" "HealthLogDestination"
#  426|       cid="$output"

Error: SHELLCHECK_WARNING (CWE-571):
/usr/share/podman/test/system/220-healthcheck.bats:447:11: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  445|       skip_if_journald_unavailable
#  446|   
#  447|->     local ctrname="c-h-$(safename)"
#  448|       local msg="healthmsg-$(random_string)"
#  449|       _create_container_with_health_log_settings $ctrname $msg "{{.Config.HealthLogDestination}}" "--health-log-destination events_logger" "events_logger" "HealthLogDestination"

Error: SHELLCHECK_WARNING (CWE-571):
/usr/share/podman/test/system/220-healthcheck.bats:448:11: warning[SC2155]: Declare and assign separately to avoid masking return values.
#  446|   
#  447|       local ctrname="c-h-$(safename)"
#  448|->     local msg="healthmsg-$(random_string)"
#  449|       _create_container_with_health_log_settings $ctrname $msg "{{.Config.HealthLogDestination}}" "--health-log-destination events_logger" "events_logger" "HealthLogDestination"
#  450|       cid="$output"

Error: COMPILER_WARNING:
podman-5.4.1/libpod/not-int-const:2:67: error[error]: invalid operands to binary * (have 'void (*)(int)' and 'int')

Error: COMPILER_WARNING:
podman-5.4.1/libpod/not-int-const:3:68: error[error]: invalid operands to binary * (have 'void (*)(void)' and 'int')

Error: COMPILER_WARNING:
podman-5.4.1/libpod/not-int-const:6:64: error[error]: invalid operands to binary * (have 'void (*)(int,  char *)' and 'int')

Error: COMPILER_WARNING:
podman-5.4.1/libpod/not-int-const:7:66: error[error]: invalid operands to binary * (have 'void (*)(void)' and 'int')

Error: COMPILER_WARNING:
podman-5.4.1/libpod/not-num-const:2:67: error[error]: incompatible types when initializing type 'double' using type 'void (*)(int)'

Error: COMPILER_WARNING:
podman-5.4.1/libpod/not-num-const:3:67: error[error]: incompatible types when initializing type 'double' using type 'void (*)(void)'

Error: COMPILER_WARNING:
podman-5.4.1/libpod/not-num-const:6:67: error[error]: incompatible types when initializing type 'double' using type 'void (*)(int,  char *)'

Error: COMPILER_WARNING:
podman-5.4.1/libpod/not-num-const:7:67: error[error]: incompatible types when initializing type 'double' using type 'void (*)(void)'

Error: COMPILER_WARNING:
podman-5.4.1/pkg/rootless/not-int-const:7:71: error[error]: invalid operands to binary * (have 'int (*)(int)' and 'int')

Error: COMPILER_WARNING:
podman-5.4.1/pkg/rootless/not-int-const:9:80: error[error]: invalid operands to binary * (have 'int (*)(int,  char *)' and 'int')

Error: COMPILER_WARNING:
podman-5.4.1/pkg/rootless/not-int-const:10:86: error[error]: invalid operands to binary * (have 'int (*)(int,  int)' and 'int')

Error: COMPILER_WARNING:
podman-5.4.1/pkg/rootless/not-int-const:11:75: error[error]: invalid operands to binary * (have 'int (*)(int,  char *)' and 'int')

Error: COMPILER_WARNING:
podman-5.4.1/pkg/rootless/not-int-const:12:69: error[error]: invalid operands to binary * (have 'uid_t (*)(void)' {{aka 'unsigned int (*)(void)'}} and 'int')

Error: COMPILER_WARNING:
podman-5.4.1/pkg/rootless/not-int-const:13:69: error[error]: invalid operands to binary * (have 'uid_t (*)(void)' {{aka 'unsigned int (*)(void)'}} and 'int')

Error: COMPILER_WARNING:
podman-5.4.1/pkg/rootless/not-num-const:7:67: error[error]: incompatible types when initializing type 'double' using type 'int (*)(int)'

Error: COMPILER_WARNING:
podman-5.4.1/pkg/rootless/not-num-const:9:67: error[error]: incompatible types when initializing type 'double' using type 'int (*)(int,  char *)'

Error: COMPILER_WARNING:
podman-5.4.1/pkg/rootless/not-num-const:10:68: error[error]: incompatible types when initializing type 'double' using type 'int (*)(int,  int)'

Error: COMPILER_WARNING:
podman-5.4.1/pkg/rootless/not-num-const:11:68: error[error]: incompatible types when initializing type 'double' using type 'int (*)(int,  char *)'

Error: COMPILER_WARNING:
podman-5.4.1/pkg/rootless/not-num-const:12:68: error[error]: incompatible types when initializing type 'double' using type 'uid_t (*)(void)' {{aka 'unsigned int (*)(void)'}}

Error: COMPILER_WARNING:
podman-5.4.1/pkg/rootless/not-num-const:13:68: error[error]: incompatible types when initializing type 'double' using type 'uid_t (*)(void)' {{aka 'unsigned int (*)(void)'}}

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/containers/storage/pkg/idtools/not-int-const:3:65: error[error]: invalid operands to binary * (have 'struct subid_range (*)(struct subid_range *, int)' and 'int')

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/containers/storage/pkg/idtools/not-int-const:5:76: error[error]: invalid operands to binary * (have 'int (*)(const char *, struct subid_range **)' and 'int')

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/containers/storage/pkg/idtools/not-int-const:6:76: error[error]: invalid operands to binary * (have 'int (*)(const char *, struct subid_range **)' and 'int')

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/containers/storage/pkg/idtools/not-num-const:3:67: error[error]: incompatible types when initializing type 'double' using type 'struct subid_range (*)(struct subid_range *, int)'

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/containers/storage/pkg/idtools/not-num-const:5:67: error[error]: incompatible types when initializing type 'double' using type 'int (*)(const char *, struct subid_range **)'

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/containers/storage/pkg/idtools/not-num-const:6:67: error[error]: incompatible types when initializing type 'double' using type 'int (*)(const char *, struct subid_range **)'

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/coreos/go-systemd/v22/internal/dlopen/not-int-const:3:65: error[error]: invalid operands to binary * (have 'int (*)(void *, const char *)' and 'int')

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/coreos/go-systemd/v22/internal/dlopen/not-num-const:3:67: error[error]: incompatible types when initializing type 'double' using type 'int (*)(void *, const char *)'

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/coreos/go-systemd/v22/sdjournal/not-int-const:1:63: error[error]: invalid operands to binary * (have 'char * (*)(_GoString_)' and 'int')

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/coreos/go-systemd/v22/sdjournal/not-num-const:1:67: error[error]: incompatible types when initializing type 'double' using type 'char * (*)(_GoString_)'

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/mattn/go-sqlite3/completed:1:16: error[error]: '__cgo__2' undeclared here (not in a function); did you mean '__cgo__1'?

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/mattn/go-sqlite3/not-int-const:1:63: error[error]: invalid operands to binary * (have 'char * (*)(_GoString_)' and 'int')

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/mattn/go-sqlite3/not-int-const:3:70: error[error]: invalid operands to binary * (have 'const char * (*)(int)' and 'int')

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/mattn/go-sqlite3/not-int-const:5:77: error[error]: invalid operands to binary * (have 'int (*)(sqlite3_backup *)' and 'int')

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/mattn/go-sqlite3/not-int-const:6:75: error[error]: invalid operands to binary * (have 'sqlite3_backup * (*)(sqlite3 *, const char *, sqlite3 *, const char *)' and 'int')

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/mattn/go-sqlite3/not-int-const:7:80: error[error]: invalid operands to binary * (have 'int (*)(sqlite3_backup *)' and 'int')

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/mattn/go-sqlite3/not-int-const:8:80: error[error]: invalid operands to binary * (have 'int (*)(sqlite3_backup *)' and 'int')

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/mattn/go-sqlite3/not-int-const:9:75: error[error]: invalid operands to binary * (have 'int (*)(sqlite3_backup *, int)' and 'int')

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/mattn/go-sqlite3/not-num-const:1:67: error[error]: incompatible types when initializing type 'double' using type 'char * (*)(_GoString_)'

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/mattn/go-sqlite3/not-num-const:3:67: error[error]: incompatible types when initializing type 'double' using type 'const char * (*)(int)'

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/mattn/go-sqlite3/not-num-const:5:67: error[error]: incompatible types when initializing type 'double' using type 'int (*)(sqlite3_backup *)'

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/mattn/go-sqlite3/not-num-const:6:67: error[error]: incompatible types when initializing type 'double' using type 'sqlite3_backup * (*)(sqlite3 *, const char *, sqlite3 *, const char *)'

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/mattn/go-sqlite3/not-num-const:7:67: error[error]: incompatible types when initializing type 'double' using type 'int (*)(sqlite3_backup *)'

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/mattn/go-sqlite3/not-num-const:8:67: error[error]: incompatible types when initializing type 'double' using type 'int (*)(sqlite3_backup *)'

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/mattn/go-sqlite3/not-num-const:9:67: error[error]: incompatible types when initializing type 'double' using type 'int (*)(sqlite3_backup *, int)'

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/completed:1:16: error[error]: '__cgo__2' undeclared here (not in a function); did you mean '__cgo__1'?

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-int-const:1:63: error[error]: invalid operands to binary * (have 'char * (*)(_GoString_)' and 'int')

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-int-const:20:72: error[error]: invalid operands to binary * (have 'void (*)(void *)' and 'int')

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-int-const:46:62: error[error]: invalid type argument of unary '*' (have 'int')

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-int-const:47:62: error[error]: invalid type argument of unary '*' (have 'int')

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-int-const:48:62: error[error]: invalid type argument of unary '*' (have 'int')

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-int-const:49:67: error[error]: invalid type argument of unary '*' (have 'int')

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-int-const:50:67: error[error]: invalid type argument of unary '*' (have 'int')

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-int-const:52:61: error[error]: invalid operands to binary * (have 'void (*)(void *)' and 'int')

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-int-const:56:60: error[error]: invalid type argument of unary '*' (have 'int')

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-int-const:58:68: error[error]: invalid type argument of unary '*' (have 'int')

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-int-const:59:69: error[error]: invalid type argument of unary '*' (have 'int')

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-int-const:60:72: error[error]: invalid type argument of unary '*' (have 'int')

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-int-const:73:69: error[error]: invalid type argument of unary '*' (have 'int')

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-int-const:74:65: error[error]: invalid type argument of unary '*' (have 'int')

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-int-const:75:65: error[error]: invalid type argument of unary '*' (have 'int')

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-num-const:1:67: error[error]: incompatible types when initializing type 'double' using type 'char * (*)(_GoString_)'

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-num-const:20:68: error[error]: incompatible types when initializing type 'double' using type 'void (*)(void *)'

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-num-const:46:75: error[error]: expected expression before ';' token

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-num-const:47:75: error[error]: expected expression before ';' token

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-num-const:48:75: error[error]: expected expression before ';' token

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-num-const:49:80: error[error]: expected expression before ';' token

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-num-const:50:80: error[error]: expected expression before ';' token

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-num-const:52:68: error[error]: incompatible types when initializing type 'double' using type 'void (*)(void *)'

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-num-const:56:73: error[error]: expected expression before ';' token

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-num-const:58:81: error[error]: expected expression before ';' token

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-num-const:59:82: error[error]: expected expression before ';' token

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-num-const:60:85: error[error]: expected expression before ';' token

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-num-const:73:82: error[error]: expected expression before ';' token

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-num-const:74:78: error[error]: expected expression before ';' token

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-num-const:75:78: error[error]: expected expression before ';' token

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-str-lit:46:75: error[error]: expected expression before ';' token

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-str-lit:47:75: error[error]: expected expression before ';' token

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-str-lit:48:75: error[error]: expected expression before ';' token

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-str-lit:49:80: error[error]: expected expression before ';' token

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-str-lit:50:80: error[error]: expected expression before ';' token

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-str-lit:56:73: error[error]: expected expression before ';' token

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-str-lit:58:81: error[error]: expected expression before ';' token

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-str-lit:59:82: error[error]: expected expression before ';' token

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-str-lit:60:85: error[error]: expected expression before ';' token

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-str-lit:73:82: error[error]: expected expression before ';' token

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-str-lit:74:78: error[error]: expected expression before ';' token

Error: COMPILER_WARNING:
podman-5.4.1/vendor/github.com/seccomp/libseccomp-golang/not-str-lit:75:78: error[error]: expected expression before ';' token