From ed4098be37850973258f8085f1a58ce3e60b6d5f Mon Sep 17 00:00:00 2001 From: jca Date: Mon, 28 Jun 2021 13:47:46 +0000 Subject: [PATCH] Fix base-gcc -Wno-error=uninitialized base-gcc always errored out when -Werror was passed and -Wuninitialized triggered, even when -Wno-error=uninitialized was passed. Deemed correct by Miod --- gnu/gcc/gcc/tree-ssa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/gcc/gcc/tree-ssa.c b/gnu/gcc/gcc/tree-ssa.c index f922e825444..dbabdf43aca 100644 --- a/gnu/gcc/gcc/tree-ssa.c +++ b/gnu/gcc/gcc/tree-ssa.c @@ -1177,7 +1177,7 @@ warn_uninit (tree t, const char *gmsgid, void *data) locus = (context != NULL && EXPR_HAS_LOCATION (context) ? EXPR_LOCUS (context) : &DECL_SOURCE_LOCATION (var)); - warning (0, gmsgid, locus, var); + warning (OPT_Wuninitialized, gmsgid, locus, var); fun_locus = &DECL_SOURCE_LOCATION (cfun->decl); if (locus->file != fun_locus->file || locus->line < fun_locus->line -- 2.20.1