]> git.ipfire.org Git - thirdparty/gcc.git/commit
fix clang warnings
authorMartin Liska <mliska@suse.cz>
Fri, 7 Oct 2022 08:22:24 +0000 (10:22 +0200)
committerMartin Liska <mliska@suse.cz>
Fri, 7 Oct 2022 08:22:24 +0000 (10:22 +0200)
commite1d1842b5432472330384d1523bb3c3132c4fea0
tree5aca250d577366471d12bf8d8501157d8c0876ee
parentbd0e35188f2a40a428314ad10e10ab5b0926f935
fix clang warnings

Fixes:

gcc/c-family/name-hint.h:109:66: warning: unqualified call to 'std::move' [-Wunqualified-std-cast-call]
gcc/config/i386/i386-expand.cc:1351:9: warning: argument 'operands' of type 'rtx[3]' (aka 'rtx_def *[3]') with mismatched bound [-Warray-parameter]
gcc/config/i386/i386.cc:15635:8: warning: argument 'operands' of type 'rtx[2]' (aka 'rtx_def *[2]') with mismatched bound [-Warray-parameter]
gcc/cp/module.cc:17482:51: warning: argument 'counts' of type 'unsigned int[8]' with mismatched bound [-Warray-parameter]
gcc/cp/module.cc:17508:37: warning: argument 'counts' of type 'unsigned int[8]' with mismatched bound [-Warray-parameter]
gcc/cp/name-lookup.cc:6385:16: warning: unqualified call to 'std::move' [-Wunqualified-std-cast-call]

gcc/c-family/ChangeLog:

* name-hint.h: Use std::move.

gcc/ChangeLog:

* config/i386/i386-protos.h (ix86_binary_operator_ok): Add array
  size to function parameter.
(ix86_unary_operator_ok): Likewise.

gcc/cp/ChangeLog:

* module.cc (enum module_state_counts): Use array size.
* name-lookup.cc (class namespace_limit_reached): Likewise.
(class module_state): Move up in the file.
gcc/c-family/name-hint.h
gcc/config/i386/i386-protos.h
gcc/cp/module.cc
gcc/cp/name-lookup.cc