mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8250863: Build error with GCC 10 in NetworkInterface.c and k_standard.c
Reviewed-by: aph, ysuenaga
This commit is contained in:
parent
d6035a522e
commit
e3c6574ac0
2 changed files with 9 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1998, 2001, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -739,6 +739,10 @@ static double zero = 0.0; /* used as const */
|
|||
errno = EDOM;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
exc.retval = zero / zero;
|
||||
errno = EINVAL;
|
||||
break;
|
||||
}
|
||||
return exc.retval;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue