From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by sourceware.org (Postfix) with ESMTPS id 740C23858412 for ; Mon, 14 Aug 2023 11:17:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 740C23858412 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id A86AD1F383 for ; Mon, 14 Aug 2023 11:17:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1692011847; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=maKc6UtwOJVFK88tYaoPS/8P8kfgAj+WiaK7eOPE8Lc=; b=mJ06ZjQJxLovJlV1DWo3fM2OK5pdlm87EC8oS6PwhmNwreMj+TS80rH3tC4IlK+96i9QZr d/Vc+9JdPKLGPD52y7i7XruJuILXUGIOGs6RgBFSDnNdbehMYTqYAaFvhYBqkWpqOGObpR tHUCRKGNAIb4FfS18sMVr5NBJmR72tk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1692011847; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=maKc6UtwOJVFK88tYaoPS/8P8kfgAj+WiaK7eOPE8Lc=; b=MTvGKVsDJPpTGR5h4xMia0UkEaieFiiGf7vU6rmdyXHU2iHLZxN6Virl0C75fHqOumDuSy TWgQk8BEMVH1tiCw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 9489D138E2 for ; Mon, 14 Aug 2023 11:17:27 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id avbcIkcN2mQvHwAAMHmgww (envelope-from ) for ; Mon, 14 Aug 2023 11:17:27 +0000 From: Tom de Vries To: gdb-patches@sourceware.org Subject: [PATCH 1/4] [gdb/build] Remove superfluous variable param_types in gdb/python/py-param.c Date: Mon, 14 Aug 2023 13:17:18 +0200 Message-Id: <20230814111721.31402-1-tdevries@suse.de> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: In gdb/python/py-param.c we have: ... enum param_types { ... } param_types; ... which declares both an enum param_types, and an unused variable param_types. Fix this by removing the variable. Tested on x86_64-linux. --- gdb/python/py-param.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gdb/python/py-param.c b/gdb/python/py-param.c index 3bae2d44ad9..4ef13f8b24c 100644 --- a/gdb/python/py-param.c +++ b/gdb/python/py-param.c @@ -44,8 +44,7 @@ enum param_types param_zuinteger, param_zuinteger_unlimited, param_enum, -} -param_types; +}; /* Translation from Python parameters to GDB variable types. Keep in the same order as PARAM_TYPES due to C++'s lack of designated initializers. */ base-commit: 3b23a5ea693deee60648c9a9e9d666d83549298e -- 2.35.3