diff options
author | Sandra Loosemore <sloosemore@baylibre.com> | 2025-02-22 16:54:50 +0000 |
---|---|---|
committer | Andrew Stubbs <ams@baylibre.com> | 2025-04-28 16:15:12 +0000 |
commit | a9f1e49fa11de85cdc55ee22ea3c021157e07719 (patch) | |
tree | 4584b35ce3f39ab58439eee9cdef05ccd0d0384c | |
parent | fd91f571f6e986f84f09f35139ff0650caa669d6 (diff) | |
download | gcc-a9f1e49fa11de85cdc55ee22ea3c021157e07719.zip gcc-a9f1e49fa11de85cdc55ee22ea3c021157e07719.tar.gz gcc-a9f1e49fa11de85cdc55ee22ea3c021157e07719.tar.bz2 |
OpenMP: Silence uninitialized variable warning in C++ front end.
There's no actual problem with the code here, just a false-positive
warning emitted by some older GCC versions.
gcc/cp/ChangeLog
* parser.cc (cp_finish_omp_declare_variant): Initialize
append_args_last.
(cherry picked from commit c978965b445079abbb88c22ba74de1e26e9f5b81)
-rw-r--r-- | gcc/cp/parser.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/parser.cc b/gcc/cp/parser.cc index 2faf82e..747209fc 100644 --- a/gcc/cp/parser.cc +++ b/gcc/cp/parser.cc @@ -51270,7 +51270,7 @@ cp_finish_omp_declare_variant (cp_parser *parser, cp_token *pragma_tok, location_t varid_loc = make_location (caret_loc, start_loc, finish_loc); tree append_args_tree = NULL_TREE; - tree append_args_last; + tree append_args_last = NULL_TREE; bool has_match = false, has_adjust_args = false; location_t adjust_args_loc = UNKNOWN_LOCATION; location_t append_args_loc = UNKNOWN_LOCATION; |