From patchwork Wed Nov 30 13:47:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Martin_Li=C5=A1ka?= X-Patchwork-Id: 61260 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A99BD385B18B for ; Wed, 30 Nov 2022 13:48:00 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by sourceware.org (Postfix) with ESMTPS id 76ADE3858D1E for ; Wed, 30 Nov 2022 13:47:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 76ADE3858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=suse.cz 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-out1.suse.de (Postfix) with ESMTPS id 6E18721B13; Wed, 30 Nov 2022 13:47:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1669816060; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZlHLnik3ALO0JDKv9zQClRnshsXn/VmkQGgfeEErefE=; b=1yeMJQZ8a+xQZEC+lt/3teFAz34uv8Np0SjsxOEPUFgcwDDBiPqsD9ASLWKU+fIo7f3s6X 7Xvd9/3E4qMksJ4y1ixFQv5Rn1Kf4VVYZo+5MSsIxeTk/u0vxy1lm7NLJqFUEpDQF6ZylE 3RJIJK26AGl0hknrTA3hc37LoC0efTs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1669816060; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZlHLnik3ALO0JDKv9zQClRnshsXn/VmkQGgfeEErefE=; b=YTWD7W8URkxphVXtmVqk+il/7HDENH+getbdnsPF184JbpdpJ7Zljo8d4eFlHJaOWu0WXD tN8m3Og5sRwXudDw== 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 3604D1331F; Wed, 30 Nov 2022 13:47:40 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id oEMyDPxeh2MFaQAAMHmgww (envelope-from ); Wed, 30 Nov 2022 13:47:40 +0000 Message-ID: <13330943-7eca-20ac-b6e9-2c61d6aaf048@suse.cz> Date: Wed, 30 Nov 2022 14:47:39 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 From: =?utf-8?q?Martin_Li=C5=A1ka?= Subject: [PATCH (pushed)] fix Clang warning To: gcc-patches@gcc.gnu.org Content-Language: en-US Cc: Tobias Burnus X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_SOFTFAIL, 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 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" Fixes: gcc/fortran/parse.cc:5782:32: warning: for loop has empty body [-Wempty-body] gcc/fortran/ChangeLog: * parse.cc (parse_omp_structured_block): Remove extra semicolon. --- gcc/fortran/parse.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/fortran/parse.cc b/gcc/fortran/parse.cc index 51ff0fc6ace..cdae43fa1fd 100644 --- a/gcc/fortran/parse.cc +++ b/gcc/fortran/parse.cc @@ -5779,7 +5779,7 @@ parse_omp_structured_block (gfc_statement omp_st, bool workshare_stmts_only) { gfc_omp_namelist *nl; for (nl = cp->ext.omp_clauses->lists[OMP_LIST_COPYPRIVATE]; - nl->next; nl = nl->next); + nl->next; nl = nl->next) ; nl->next = new_st.ext.omp_clauses->lists[OMP_LIST_COPYPRIVATE]; }