Skip to content

Commit a91a0a5

Browse files
author
Harold Seigel
committed
8233724: Remove -Wc++14-compat warning suppression in operator_new.cpp
Reviewed-by: coleenp
1 parent 1271fbf commit a91a0a5

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/hotspot/share/memory/operator_new.cpp

+1-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -89,12 +89,6 @@ void operator delete [](void* p) throw() {
8989
fatal("Should not call global delete []");
9090
}
9191

92-
#ifdef __GNUG__
93-
// Warning disabled for gcc 5.4
94-
PRAGMA_DIAG_PUSH
95-
PRAGMA_DISABLE_GCC_WARNING("-Wc++14-compat")
96-
#endif // __GNUG__
97-
9892
void operator delete(void* p, size_t size) throw() {
9993
fatal("Should not call global sized delete");
10094
}
@@ -103,8 +97,4 @@ void operator delete [](void* p, size_t size) throw() {
10397
fatal("Should not call global sized delete []");
10498
}
10599

106-
#ifdef __GNUG__
107-
PRAGMA_DIAG_POP
108-
#endif // __GNUG__
109-
110100
#endif // Non-product

0 commit comments

Comments
 (0)