[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-apl] [PATCH] Fix of compiler warnings probuced by gcc 3.4.6 armv5
From: |
Alexey Veretennikov |
Subject: |
[Bug-apl] [PATCH] Fix of compiler warnings probuced by gcc 3.4.6 armv5 |
Date: |
Sun, 26 Feb 2017 10:20:21 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (darwin) |
Hi,
Below is the patch which fixes some (reasonable) compiler warnings
produced by older compiler.
Index: src/Function.hh
===================================================================
--- src/Function.hh (revision 897)
+++ src/Function.hh (working copy)
@@ -52,7 +52,7 @@
/// constructor for most functions
Function(TokenTag _tag)
: NamedObject(ID::Id(_tag >> 16)),
- creation_time(0.0),
+ creation_time(0),
tag(_tag)
{ parallel_thresholds[0] = parallel_thresholds[1] = -1; }
@@ -59,7 +59,7 @@
/// constructor for functions whose Id does not match their tag
Function(ID::Id id, TokenTag _tag)
: NamedObject(id),
- creation_time(0.0),
+ creation_time(0),
tag(_tag)
{ parallel_thresholds[0] = parallel_thresholds[1] = -1; }
Index: src/Performance.hh
===================================================================
--- src/Performance.hh (revision 897)
+++ src/Performance.hh (working copy)
@@ -155,7 +155,7 @@
{}
/// destructor
- ~Statistics();
+ virtual ~Statistics();
/// print statistics
virtual void print(ostream & out) = 0;
--
Br,
/Alexey
- [Bug-apl] [PATCH] Fix of compiler warnings probuced by gcc 3.4.6 armv5,
Alexey Veretennikov <=