forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
openjdk-N: fix build by ignoring new gcc-14 warnigns (wolfi-dev#30228)
Related: wolfi-dev#26401
- Loading branch information
1 parent
4cefc7c
commit f6078c8
Showing
5 changed files
with
31 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
diff --git a/make/jdk/src/classes/build/tools/generatecurrencydata/GenerateCurrencyData.java b/make/jdk/src/classes/build/tools/generatecurrencydata/GenerateCurrencyData.java | ||
index ae861c5ab..602a82076 100644 | ||
--- a/make/jdk/src/classes/build/tools/generatecurrencydata/GenerateCurrencyData.java | ||
+++ b/make/jdk/src/classes/build/tools/generatecurrencydata/GenerateCurrencyData.java | ||
@@ -284,8 +284,8 @@ public class GenerateCurrencyData { | ||
checkCurrencyCode(newCurrency); | ||
String timeString = currencyInfo.substring(4, length - 4); | ||
long time = format.parse(timeString).getTime(); | ||
- if (Math.abs(time - System.currentTimeMillis()) > ((long) 10) * 365 * 24 * 60 * 60 * 1000) { | ||
- throw new RuntimeException("time is more than 10 years from present: " + time); | ||
+ if (Math.abs(time - System.currentTimeMillis()) > ((long) 100) * 365 * 24 * 60 * 60 * 1000) { | ||
+ throw new RuntimeException("time is more than 100 years from present: " + time); | ||
} | ||
specialCaseCutOverTimes[specialCaseCount] = time; | ||
specialCaseOldCurrencies[specialCaseCount] = oldCurrency; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters