public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
From: "mark at klomp dot org" <sourceware-bugzilla@sourceware.org>
To: elfutils-devel@sourceware.org
Subject: [Bug general/31287] 0.190: test suite build fails with gcc 14.x
Date: Wed, 31 Jan 2024 16:09:07 +0000	[thread overview]
Message-ID: <bug-31287-10460-bxV72wOdW8@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-31287-10460@http.sourceware.org/bugzilla/>

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 <slyich@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 <slyich@gmail.com>

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

      parent reply	other threads:[~2024-01-31 16:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-24  8:00 [Bug general/31287] New: " kloczko.tomasz at gmail dot com
2024-01-24  8:20 ` [Bug general/31287] " sam at gentoo dot org
2024-01-31 16:09 ` mark at klomp dot org [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-31287-10460-bxV72wOdW8@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=elfutils-devel@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).