lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Tue, 15 Feb 2022 23:20:14 +0100
From:   Alexandre Belloni <alexandre.belloni@...tlin.com>
To:     Victor Erminpour <victor.erminpour@...cle.com>,
        a.zummo@...ertech.it
Cc:     Alexandre Belloni <alexandre.belloni@...tlin.com>,
        trivial@...nel.org, linux-rtc@...r.kernel.org,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH] rtc: pcf8523: Fix GCC 12 warning

On Wed, 9 Feb 2022 16:30:27 -0800, Victor Erminpour wrote:
> When building with automatic stack variable initialization, GCC 12
> complains about variables defined outside of switch case statements.
> Move variables outside the switch, which silences warnings:
> 
> ./drivers/rtc/rtc-pcf8523.c:284:20: error: statement will never be executed [-Werror=switch-unreachable]
>   284 |                 u8 mode;
>       |
> 
> [...]

Applied, thanks!

[1/1] rtc: pcf8523: Fix GCC 12 warning
      commit: 85bcb01f145dc32e7f88e6eebb3b5f96d3b56eb6

Best regards,
-- 
Alexandre Belloni <alexandre.belloni@...tlin.com>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ