From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id EfmyNwBHWmrD0A4AWB0awg (envelope-from ) for ; Fri, 17 Jul 2026 11:15:12 -0400 Received: by simark.ca (Postfix, from userid 112) id D20E61E033; Fri, 17 Jul 2026 11:15:12 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.3 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 4B7841E033 for ; Fri, 17 Jul 2026 11:15:12 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D01054BA2E30 for ; Fri, 17 Jul 2026 15:15:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D01054BA2E30 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) by sourceware.org (Postfix) with ESMTPS id 13C944BA5435 for ; Fri, 17 Jul 2026 15:14:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 13C944BA5435 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=palves.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 13C944BA5435 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=209.85.221.46 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1784301282; cv=none; b=bQO0TA0fDagKaE9IBJlMnqmUmqSIQ+1KIFBTremB2nmLfG41KSBSGvToccYv/q+dM7WDRHsXoxajBXKfYJNl2KpEV7c4GhsmzsSi9PWGDnD+hwz9xTaMrka6k2HCBzqJ23ZCVpat095uVpDqMwae25OgiaVr4jQEh98zilf3M+E= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1784301282; c=relaxed/simple; bh=wG9MKzwgH3wAtSDwlc3M7T89gW47vM+0wEJqRnx84MM=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=e9ltXNHQutTJqnBQvombmnVIZdHBWTrimWUPMmTwM1L5W8NRwYEE4VXoF/Fbp1tiJ+u0/Bv0ETVqUWz8OSinTP/L+r43tcTPX5tLMm6OTABwKJXIKB83jDPj5col73rLp9bu0JYRxC1m1YecySMtVHUfr8bUX7YeaE98c+NjFGc= ARC-Authentication-Results: i=1; sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 13C944BA5435 Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-4720d22c94aso5107184f8f.1 for ; Fri, 17 Jul 2026 08:14:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784301281; x=1784906081; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=ifdyMcxz8tC+GiaxR7Gp0BpZ8F0aWxgZxBne1LG+7sI=; b=OwEOj4erYf4qKCiW+9XPjvkY3b85060evU2QaPiVe56PknPaoq5xaFZyZu6R3zyC2B i0ZvN/iiFrlyPz00BZMss3JRVvtAPEyfHKWVTQISoX6rTkCGgAJitIKfTEHOn3frcZqi vGif1XypK/ZRiQAIsEUaOGAtO/NvEjb04AXScIGN4NphQ6IsrK88KW/o7l9jI6tW7EfB 4tG3BDLVWck8HS0X5nkPxD2Ui/gD2agMW58gOKXsikhh/q3dwsed4dG55/4G9y+eTUZb K98YdUHNDX6gpT0owEpGX938koJlsYFP5qLF3j+C9gQW8iM2OL8UKXiYrv4skjlfR5kv mTqg== X-Gm-Message-State: AOJu0YyMventcP8sQ+TWZJ2VFHHuw4zflxUJcxgWWszB/0FPWhDRHp83 j3caTF/UXBg0/STBUBRnqw5pIWaJbsnpzc37udHYsZyhBFOJiUygQQq69+1VwA== X-Gm-Gg: AfdE7cklzgX4LRm941yoCofzVRVyqpWFa3sV8Q1IglVBI2XqiO+50cig1IJkilJRQll uPGC/FBLhaeTe/i1eDfrWPs+/ZJ3+xPDnbspeSs7XgNhbDYlc9qbnMVa7l+hNyKGf3QooWnI2u5 f1p5wFiDHflKXSisbb0KHEHCFEhJW9couGP8nbQHuzTAzWpC7nTPeMekyPxdabJuN08vkd8HYXF t+skArFVSdXna66RASlsJe2EN7bUyP/jswefaRp8+EswSrjg/N9+tOfe15rJfJiF7fcIqtXzOyd k8pla0dt8HF+k0WBJm+UVQS0E/h+C2F+nQlZRQGwRjr1Mv0W7CmM5bJjMPYUICGlwyQLxNjvIhO tEdVQSV+r0Xwm5ok+hiffqElwQeb5eOna0nJuiFW74EXbixUMbeohotFKrsqlRLa/G7w4DR81fX uG X-Received: by 2002:a05:6000:2c06:b0:47d:e121:1dd1 with SMTP id ffacd0b85a97d-47f622f91f8mr4963417f8f.17.1784301280726; Fri, 17 Jul 2026 08:14:40 -0700 (PDT) Received: from localhost ([2001:8a0:fae3:3700:4cbf:5b0f:68f7:7a14]) by smtp.gmail.com with UTF8SMTPSA id ffacd0b85a97d-47f63e496afsm5097633f8f.1.2026.07.17.08.14.40 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Jul 2026 08:14:40 -0700 (PDT) From: Pedro Alves To: gdb-patches@sourceware.org Subject: [PATCH] gdb.base/nodebug.exp: Disable -Wdeprecated-non-prototype Date: Fri, 17 Jul 2026 16:14:36 +0100 Message-ID: <20260717151436.2178151-1-pedro@palves.net> X-Mailer: git-send-email 2.54.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org Testing gdb.base/nodebug.exp with Clang shows: .../gdb.base/nodebug.c:63:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | multf_noproto (v1, v2) | ^ Fix it by making gdb.base/nodebug.exp disable -Wdeprecated-non-prototype. Tested with Clang 18.1.3 on x86_64-pc-linux-gnu, and Clang 21.0.0git on x86_64-pc-windows-msvc. Change-Id: Id207053331377abec6918aa1188180d609c74273 --- gdb/testsuite/gdb.base/nodebug.exp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gdb/testsuite/gdb.base/nodebug.exp b/gdb/testsuite/gdb.base/nodebug.exp index e4138a801da..9cdff5d5560 100644 --- a/gdb/testsuite/gdb.base/nodebug.exp +++ b/gdb/testsuite/gdb.base/nodebug.exp @@ -25,6 +25,15 @@ if {[have_compile_flag -std=c99]} { lappend exec_opts additional_flags=-std=c99 } +if {[test_compiler_info "clang-*"]} { + # Even with -std=c99, Clang warns like so: + # + # warning: a function definition without a prototype is deprecated + # in all versions of C and is not supported in C23 + # [-Wdeprecated-non-prototype] + lappend exec_opts additional_flags=-Wno-deprecated-non-prototype +} + if {[test_compiler_info "xlc-*"]} { # By default, IBM's xlc compiler doesn't add static variables into the symtab. # Use "-qstatsym" to do so. base-commit: 490469846dcef89fe53668bdbba73591c64bed61 -- 2.54.0