public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Marek Polacek <mpolacek@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-9140] testsuite: fix Wmismatched-new-delete-8.C with -m32 Date: Thu, 22 Feb 2024 23:54:47 +0000 (GMT) [thread overview] Message-ID: <20240222235447.C6C5C385840C@sourceware.org> (raw) https://gcc.gnu.org/g:d34d7c74d51d365a3a4ddcd4383fc7c9f29020a1 commit r14-9140-gd34d7c74d51d365a3a4ddcd4383fc7c9f29020a1 Author: Marek Polacek <polacek@redhat.com> Date: Thu Feb 22 18:52:32 2024 -0500 testsuite: fix Wmismatched-new-delete-8.C with -m32 This fixes error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter [-fpermissive] gcc/testsuite/ChangeLog: * g++.dg/warn/Wmismatched-new-delete-8.C: Use __SIZE_TYPE__. Diff: --- gcc/testsuite/g++.dg/warn/Wmismatched-new-delete-8.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/g++.dg/warn/Wmismatched-new-delete-8.C b/gcc/testsuite/g++.dg/warn/Wmismatched-new-delete-8.C index 0ddc056c6df2..e8fd7a85b8c9 100644 --- a/gcc/testsuite/g++.dg/warn/Wmismatched-new-delete-8.C +++ b/gcc/testsuite/g++.dg/warn/Wmismatched-new-delete-8.C @@ -11,7 +11,7 @@ static inline T * construct_at(void *at, ARGS && args) struct Placeable : T { Placeable(ARGS && args) : T(args) { } - void * operator new (long unsigned int, void *ptr) { return ptr; } + void * operator new (__SIZE_TYPE__, void *ptr) { return ptr; } void operator delete (void *, void *) { } }; return new (at) Placeable(static_cast<ARGS &&>(args));
reply other threads:[~2024-02-22 23:54 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20240222235447.C6C5C385840C@sourceware.org \ --to=mpolacek@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.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: linkBe 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).