8233724: Remove -Wc++14-compat warning suppression in operator_new.cpp
Reviewed-by: coleenp
This commit is contained in:
parent
1271fbf3d4
commit
a91a0a523a
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2021, 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
|
||||
@ -89,12 +89,6 @@ void operator delete [](void* p) throw() {
|
||||
fatal("Should not call global delete []");
|
||||
}
|
||||
|
||||
#ifdef __GNUG__
|
||||
// Warning disabled for gcc 5.4
|
||||
PRAGMA_DIAG_PUSH
|
||||
PRAGMA_DISABLE_GCC_WARNING("-Wc++14-compat")
|
||||
#endif // __GNUG__
|
||||
|
||||
void operator delete(void* p, size_t size) throw() {
|
||||
fatal("Should not call global sized delete");
|
||||
}
|
||||
@ -103,8 +97,4 @@ void operator delete [](void* p, size_t size) throw() {
|
||||
fatal("Should not call global sized delete []");
|
||||
}
|
||||
|
||||
#ifdef __GNUG__
|
||||
PRAGMA_DIAG_POP
|
||||
#endif // __GNUG__
|
||||
|
||||
#endif // Non-product
|
||||
|
Loading…
Reference in New Issue
Block a user