aboutsummaryrefslogtreecommitdiff
path: root/gold/gold-threads.h
diff options
context:
space:
mode:
authorDoug Kwan <dougkwan@google.com>2010-02-22 18:26:29 +0000
committerDoug Kwan <dougkwan@google.com>2010-02-22 18:26:29 +0000
commitbb0bfe4f65b1808979cd1aacf6240c83575a4f92 (patch)
tree2cd2781922b7838cdfa159f69df0769d540611e0 /gold/gold-threads.h
parentc380a809dea581f548281e813edfc5b6e5007708 (diff)
downloadgdb-bb0bfe4f65b1808979cd1aacf6240c83575a4f92.zip
gdb-bb0bfe4f65b1808979cd1aacf6240c83575a4f92.tar.gz
gdb-bb0bfe4f65b1808979cd1aacf6240c83575a4f92.tar.bz2
2010-02-22 Doug Kwan <dougkwan@google.com>
* gold-threads.h (Once::~Once): Explicitly define virtual destructor. * icf.cc (get_section_contents): Cast snprintf arguments to long long types to avoid warnings due to different uint64_t implementations on different hosts.
Diffstat (limited to 'gold/gold-threads.h')
-rw-r--r--gold/gold-threads.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gold/gold-threads.h b/gold/gold-threads.h
index 78a87b2..622bf32 100644
--- a/gold/gold-threads.h
+++ b/gold/gold-threads.h
@@ -200,6 +200,10 @@ class Once
public:
Once();
+ virtual
+ ~Once()
+ { }
+
// Call this function to do whatever it is. We pass an argument
// even though you have to use a child class because in some uses
// setting the argument would itself require a Once class.