https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118627

--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tobias Burnus <bur...@gcc.gnu.org>:

https://gcc.gnu.org/g:c6279fffdbf8e13e46932eb8e100cfc579d06f2c

commit r15-8892-gc6279fffdbf8e13e46932eb8e100cfc579d06f2c
Author: Tobias Burnus <tbur...@baylibre.com>
Date:   Tue Mar 25 15:02:54 2025 +0100

    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.
  • [Bug middle-end/118627] gcc/omp... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to