mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
6934483: GCC 4.5 errors "suggest parentheses around something..." when compiling with -Werror and -Wall
These are minor changes fixing compile failure when -Wall -Werror flags are used under gcc 4.5. Reviewed-by: twisti, kvn, rasbold
This commit is contained in:
parent
93c9356496
commit
af2548723c
3 changed files with 29 additions and 28 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2001, 2008, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2001, 2010, 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
|
||||
|
@ -346,7 +346,8 @@ class NoRefDiscovery: StackObj {
|
|||
bool _was_discovering_refs;
|
||||
public:
|
||||
NoRefDiscovery(ReferenceProcessor* rp) : _rp(rp) {
|
||||
if (_was_discovering_refs = _rp->discovery_enabled()) {
|
||||
_was_discovering_refs = _rp->discovery_enabled();
|
||||
if (_was_discovering_refs) {
|
||||
_rp->disable_discovery();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue