git: tcplay/cryptdisks: Suppress GCC 15 false-positive -Wmaybe-uninitialized.

Matthew Dillon dillon at crater.dragonflybsd.org
Fri May 22 18:43:41 PDT 2026


commit b77d373551e67a9ce62d8063b8dd7bafd6f9e360
Author: Abdelkader Boudih <dragonflybsd at seuros.com>
Date:   Thu May 22 07:53:43 2025 +0000

    tcplay/cryptdisks: Suppress GCC 15 false-positive -Wmaybe-uninitialized.
    
    GCC 15 cannot see that mem is always initialized after the
    malloc NULL check. Use a guarded diagnostic pragma to suppress
    the warning only on GCC >= 15.

Summary of changes:
 lib/libtcplay/safe_mem.c   | 8 ++++++++
 sbin/cryptdisks/safe_mem.c | 8 ++++++++
 2 files changed, 16 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b77d373551e67a9ce62d8063b8dd7bafd6f9e360


-- 
DragonFly BSD source repository


More information about the Commits mailing list