Skip to content

Commit

Permalink
8233724: Remove -Wc++14-compat warning suppression in operator_new.cpp
Browse files Browse the repository at this point in the history
Reviewed-by: coleenp
  • Loading branch information
Harold Seigel committed Oct 20, 2021
1 parent 1271fbf commit a91a0a5
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/hotspot/share/memory/operator_new.cpp
@@ -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
Expand Down Expand Up @@ -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");
}
Expand All @@ -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

1 comment on commit a91a0a5

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.