]> git.ipfire.org Git - thirdparty/gcc.git/commit
omp-general.cc: Remove 'if' around call to always 'true' returning function [PR118627]
authorTobias Burnus <tburnus@baylibre.com>
Tue, 25 Mar 2025 14:02:54 +0000 (15:02 +0100)
committerTobias Burnus <tburnus@baylibre.com>
Tue, 25 Mar 2025 14:02:54 +0000 (15:02 +0100)
commitc6279fffdbf8e13e46932eb8e100cfc579d06f2c
tree4cf761402194b88bc3f8c47fdef46ace1528989d
parent927cfea902c330092848bd7a228b714b07d08f6b
omp-general.cc: Remove 'if' around call to always 'true' returning function [PR118627]

Before omp_parse_access_method and omp_parse_access_methods unconditionally
returned true, now they are void functions.
Accordingly, calls had to be updated by removing the 'if' around the call;
this also fixes Clang's -Wsometimes-uninitialized warning when compiling
omp-general.cc as one variable remained uninitialized for a never occurring
false.

gcc/ChangeLog:

PR middle-end/118627

* omp-general.cc (omp_parse_access_method): Change to return void.
(omp_parse_access_methods): Return void; remove 'if' around a
function call.
(omp_parse_expr): Remove 'if' around a function call.
gcc/omp-general.cc