New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JDK-8253239: Disable VS warning C4307 #237
Conversation
👋 Welcome back mbaesken! A progress list of the required criteria for merging this PR into |
@MBaesken The following label will be automatically applied to this pull request: When this pull request is ready to be reviewed, an RFR email will be sent to the corresponding mailing list. If you would like to change these labels, use the |
Webrevs
|
make/autoconf/flags-cflags.m4
Outdated
@@ -134,6 +134,9 @@ AC_DEFUN([FLAGS_SETUP_WARNINGS], | |||
|
|||
WARNINGS_ENABLE_ALL="-W3" | |||
DISABLED_WARNINGS="4800" | |||
if test "x$TOOLCHAIN_VERSION" = x2017; then | |||
DISABLED_WARNINGS+=" 4307" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like this file uses 2 spaces as indenting, 4 spaces are used here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You Are right, I adjusted the indenting to 2 sapces and did a git commit --amend and repushed it.
0d1d38b
to
4e82edc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks fine to me, but build maintainers should approve.
@@ -134,6 +134,9 @@ AC_DEFUN([FLAGS_SETUP_WARNINGS], | |||
|
|||
WARNINGS_ENABLE_ALL="-W3" | |||
DISABLED_WARNINGS="4800" | |||
if test "x$TOOLCHAIN_VERSION" = x2017; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like a comment here explaining why we need to disable this warning, since it's caused by a faulty behavior in the compiler.
I left a suggestion for a comment. You should be able to just accept it if you are happy with it. If you would rather write something yourself, I recommend committing without --amend. The Skara bot will automatically squash all your changes before merging this to the main repo. |
Co-authored-by: Erik Joelsson <37597443+erikj79@users.noreply.github.com>
@MBaesken This change now passes all automated pre-integration checks. In addition to the automated checks, the change must also fulfill all project specific requirements After integration, the commit message will be:
Since the source branch of this PR was last updated there have been 6 commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid automatic rebasing, please merge ➡️ To integrate this PR with the above commit message to the |
/integrate |
@MBaesken Since your change was applied there have been 6 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit 52c28b8. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
hello, this fixes the build when using VS2017. VS2019 does not have the issue as far as I know.
failure was
This might be related to an issue fixed at least in some versions of VS2019 , that is discussed here :
https://developercommunity.visualstudio.com/content/problem/211134/unsigned-integer-overflows-in-constexpr-functionsa.html
https://bugs.openjdk.java.net/browse/JDK-8253239
Progress
Issue
Reviewers
Download
$ git fetch https://git.openjdk.java.net/jdk pull/237/head:pull/237
$ git checkout pull/237