From nobody Mon Jul 17 10:07:59 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4R4Hp72LHVz4ndWp; Mon, 17 Jul 2023 10:07:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4R4Hp71pdpz4Ht7; Mon, 17 Jul 2023 10:07:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689588479; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dSGD3Z0NXX+zIrBe9xnIbA5yuhBsQxC3sB+zKgW3V8Y=; b=lyAs7HY2UR2CxhgK9cF4IMsVNrlQanqHrrCgiT9XQEf7OYH9U9iSXbNxMCefPjnX26ywc1 pXeAy08DrM0EA0ndP82fE7Ate3A1mwwiI4QDTTZBd6AipCaNqYqF6Rxe2CRT17Y5aDdIVz hlE/OlAIr+7aNF3/wlFes/heaEu1qSRTZBAVYulU+1ixDbyVVdyXRqwE2cin9JEopZz+5q LgK61iuNsLB0Dv1iG7MR8Pyl5p47eOAz5miXwndikCGaldwvng5ghXAzPHpxx8oXYrKYev SoMPk4N0B3zbuctLLV2vlEqStIoyxF/d2Spm6VDzHjerN7Sy+FMKN9HBT5Y06g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689588479; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dSGD3Z0NXX+zIrBe9xnIbA5yuhBsQxC3sB+zKgW3V8Y=; b=ps9j7y0xhM5yQIaAk2zWfPP7GMjzY9k1ZKJdglhKxRs+ao5k9Z91s54P4T40ende0tfJ12 u8NjRnT2N3BOzuWHph8LUqjCbWTArAzy/wb2PF/MiyJ4MtfLYypSgY6vSGHEa8cWzUpc6A tuJHoPCJRSV9VSClFLRYE8ioZFrIzMe3O1AtQd2OhU4Em7lS0dxM4Muc5clZju1qzSc8uW gLh3uYbfybDWqdDAWcz+9QjTSRVlJg1mgKbenR+vAtZqZARFdXpBJ+CG58R9bIheaEN70O X7xSC7FHfseycNFPPftsR3PmzgLKW4iVP+lvYg67ec05qjuRSS/wXCd74l7vzA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1689588479; a=rsa-sha256; cv=none; b=Z+GaNzladzBbUQppI5EOlfQY89KBQ7u2GSMbibXAfSom7vyAClZevXu2WCcJQTtnVNaX9W 76i3k41B0yzz/Ta8+qFgGgoeihIdyR2R3GshHMcJsPFXoEYJX/2J1OM8yYaGqDtFtqA2Td PrzM+wXjqZtjZYuosx3cqPdlr+HyF70sc5pyR5HgmmdsXcmPESrtpIrdHGI/AGWw2GtTAE b48EguJhNg+j5ASjC5vPnIK3VRQkCwKwqZl/Kf6/c5bO15vAgEOObABya4gzK45jXzm00i jCn5IDtpZkmCqJCVJawo1bj5L4pbBXoP70/lvoXOlYqyOhLQGmD93Zhl1ke75A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4R4Hp70tYkzKfB; Mon, 17 Jul 2023 10:07:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 36HA7xMg018484; Mon, 17 Jul 2023 10:07:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 36HA7xDx018483; Mon, 17 Jul 2023 10:07:59 GMT (envelope-from git) Date: Mon, 17 Jul 2023 10:07:59 GMT Message-Id: <202307171007.36HA7xDx018483@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Max Brazhnikov Subject: git: c509c1be3d8d - main - science/kst2: fix build with C++17 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: makc X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c509c1be3d8d1cc1e0ad40569cf346365f072591 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by makc: URL: https://cgit.FreeBSD.org/ports/commit/?id=c509c1be3d8d1cc1e0ad40569cf346365f072591 commit c509c1be3d8d1cc1e0ad40569cf346365f072591 Author: Max Brazhnikov AuthorDate: 2023-07-17 10:07:35 +0000 Commit: Max Brazhnikov CommitDate: 2023-07-17 10:07:35 +0000 science/kst2: fix build with C++17 Drop register keyword to fix build with clang16. --- science/kst2/files/patch-src_libkstmath_escan.cpp | 113 ++++++++++++++++++++++ 1 file changed, 113 insertions(+) diff --git a/science/kst2/files/patch-src_libkstmath_escan.cpp b/science/kst2/files/patch-src_libkstmath_escan.cpp new file mode 100644 index 000000000000..4dc880e4ce7d --- /dev/null +++ b/science/kst2/files/patch-src_libkstmath_escan.cpp @@ -0,0 +1,113 @@ +--- src/libkstmath/escan.cpp.orig 2022-02-16 19:03:30 UTC ++++ src/libkstmath/escan.cpp +@@ -691,9 +691,9 @@ extern int yylex (void); + */ + YY_DECL + { +- register yy_state_type yy_current_state; +- register char *yy_cp, *yy_bp; +- register int yy_act; ++ yy_state_type yy_current_state; ++ char *yy_cp, *yy_bp; ++ int yy_act; + + #line 21 "escan.l" + +@@ -742,7 +742,7 @@ YY_DECL + yy_match: + do + { +- register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; ++ YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; + if ( yy_accept[yy_current_state] ) + { + (yy_last_accepting_state) = yy_current_state; +@@ -1130,9 +1130,9 @@ ECHO; + */ + static int yy_get_next_buffer (void) + { +- register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; +- register char *source = (yytext_ptr); +- register int number_to_move, i; ++ char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; ++ char *source = (yytext_ptr); ++ int number_to_move, i; + int ret_val; + + if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] ) +@@ -1264,14 +1264,14 @@ static int yy_get_next_buffer (void) + + static yy_state_type yy_get_previous_state (void) + { +- register yy_state_type yy_current_state; +- register char *yy_cp; ++ yy_state_type yy_current_state; ++ char *yy_cp; + + yy_current_state = (yy_start); + + for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) + { +- register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); ++ YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); + if ( yy_accept[yy_current_state] ) + { + (yy_last_accepting_state) = yy_current_state; +@@ -1296,10 +1296,10 @@ static int yy_get_next_buffer (void) + */ + static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state ) + { +- register int yy_is_jam; +- register char *yy_cp = (yy_c_buf_p); ++ int yy_is_jam; ++ char *yy_cp = (yy_c_buf_p); + +- register YY_CHAR yy_c = 1; ++ YY_CHAR yy_c = 1; + if ( yy_accept[yy_current_state] ) + { + (yy_last_accepting_state) = yy_current_state; +@@ -1317,9 +1317,9 @@ static int yy_get_next_buffer (void) + return yy_is_jam ? 0 : yy_current_state; + } + #if 0 +- static void yyunput (int c, register char * yy_bp ) ++ static void yyunput (int c, char * yy_bp ) + { +- register char *yy_cp; ++ char *yy_cp; + + yy_cp = (yy_c_buf_p); + +@@ -1329,10 +1329,10 @@ static int yy_get_next_buffer (void) + if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) + { /* need to shift things up to make room */ + /* +2 for EOB chars. */ +- register int number_to_move = (yy_n_chars) + 2; +- register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ ++ int number_to_move = (yy_n_chars) + 2; ++ char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ + YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; +- register char *source = ++ char *source = + &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]; + + while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) +@@ -1953,7 +1953,7 @@ int yylex_destroy (void) + #ifndef yytext_ptr + static void yy_flex_strncpy (char* s1, yyconst char * s2, int n ) + { +- register int i; ++ int i; + for ( i = 0; i < n; ++i ) + s1[i] = s2[i]; + } +@@ -1962,7 +1962,7 @@ static void yy_flex_strncpy (char* s1, yyconst char * + #ifdef YY_NEED_STRLEN + static int yy_flex_strlen (yyconst char * s ) + { +- register int n; ++ int n; + for ( n = 0; s[n]; ++n ) + ; +