yselkowitz / rpms / gdb

Forked from rpms/gdb 4 months ago
Clone

d2a000e Fix build with GCC 14

Authored and Committed by yselkowitz 4 months ago
    Fix build with GCC 14
    
    ../../opcodes/ppc-dis.c: In function ‘powerpc_init_dialect’:
    ../../opcodes/ppc-dis.c:351:45: error: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
      351 |   struct dis_private *priv = calloc (sizeof (*priv), 1);
          |                                             ^
    ../../opcodes/ppc-dis.c:351:45: note: earlier argument should specify number of elements, later size of each element
    
    https://sourceware.org/git/?p=binutils-gdb.git;h=54195469c18ec9873cc5ba6907f768509473fa9b
    
        
file modified
+2 -0
file modified
+1 -0