https://sourceware.org/bugzilla/show_bug.cgi?id=31287

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
                 CC|                            |mark at klomp dot org
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #2 from Mark Wielaard <mark at klomp dot org> ---
commit ae580d48278b9924da7503886b37be34378e1b04
Author: Sergei Trofimovich <sly...@gmail.com>
Date:   Thu Dec 21 09:23:30 2023 +0000

    tests: fix build against upcoming `gcc-14`
(`-Werror=calloc-transposed-args`)

    `gcc-14` added a new `-Wcalloc-transposed-args` warning recently. It
    detected minor infelicity in `calloc()` API usage in `elfutils`:

        elfstrmerge.c: In function 'main':
        elfstrmerge.c:450:32: error:
          'calloc' sizes specified with 'sizeof' in the earlier argument and
not in the later argument [-Werror=calloc-transposed-args]
          450 |   newscnbufs = calloc (sizeof (void *), newshnums);
              |                                ^~~~
        elfstrmerge.c:450:32: note: earlier argument should specify number of
elements, later size of each element

    Signed-off-by: Sergei Trofimovich <sly...@gmail.com>

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to