Hi, When compiling fortran/match.cc, clang emits a warning
fortran/match.cc:5301:7: warning: variable 'p' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] which looks accurate, so this patch adds an initialization of p to avoid the use. Bootstrapped and tested on x86_64-linx. OK for master? Thanks, Martin gcc/fortran/ChangeLog: 2025-06-23 Martin Jambor <mjam...@suse.cz> * match.cc (gfc_match_nullify): Initialize p to NULL; --- gcc/fortran/match.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/fortran/match.cc b/gcc/fortran/match.cc index a99a757bede..2e5ba29d9a4 100644 --- a/gcc/fortran/match.cc +++ b/gcc/fortran/match.cc @@ -5293,7 +5293,7 @@ match gfc_match_nullify (void) { gfc_code *tail; - gfc_expr *e, *p; + gfc_expr *e, *p = NULL; match m; tail = NULL; -- 2.49.0