From 0192c3eedbc7e6fe703abd8b321f400ddb02adf7 Mon Sep 17 00:00:00 2001 From: Roger Sayle Date: Mon, 12 Jul 2021 10:59:08 +0100 Subject: [PATCH] Tweak testcase for PR tree-optimization/101403. Initialize unused variable u in compound expression. Committed as obvious. 2021-07-12 Roger Sayle Jakub Jelinek gcc/testsuite/ChangeLog PR tree-optimization/101403 * gcc.dg/pr101403.c: Avoid (unimportant) uninitialized variable. --- gcc/testsuite/gcc.dg/pr101403.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.dg/pr101403.c b/gcc/testsuite/gcc.dg/pr101403.c index ac5fa79..88df112 100644 --- a/gcc/testsuite/gcc.dg/pr101403.c +++ b/gcc/testsuite/gcc.dg/pr101403.c @@ -2,7 +2,7 @@ /* { dg-options "-O2" } */ unsigned int foo (unsigned int a) { - unsigned int u; + unsigned int u = 0; unsigned short b = __builtin_bswap16 (a); return b >> (u, 12); } -- 2.7.4