[PATCH] Fix some warnings
Richard Guenther
rguenth at tat.physik.uni-tuebingen.de
Fri Jan 10 23:55:25 UTC 2003
Hi!
The following patch fixes some warnings and missing includes.
Ok?
Richard.
2002Jan11 Richard Guenther <richard.guenther at uni-tuebingen.de>
* src/IO/DiskLayout.h: include <string>.
src/Utilities/Pool.cmpl.cpp: reorder initializers to match
declaration order.
Index: src/IO/DiskLayout.h
===================================================================
RCS file: /home/pooma/Repository/r2/src/IO/DiskLayout.h,v
retrieving revision 1.4
diff -u -r1.4 DiskLayout.h
--- src/IO/DiskLayout.h 3 Oct 2001 21:07:48 -0000 1.4
+++ src/IO/DiskLayout.h 10 Jan 2003 23:53:36 -0000
@@ -58,6 +58,7 @@
#include <fstream> // file I/O
#include <vector> // node lists
+#include <string>
//-----------------------------------------------------------------------------
// struct DiskNode<Dim>
Index: src/Utilities/Pool.cmpl.cpp
===================================================================
RCS file: /home/pooma/Repository/r2/src/Utilities/Pool.cmpl.cpp,v
retrieving revision 1.12
diff -u -r1.12 Pool.cmpl.cpp
--- src/Utilities/Pool.cmpl.cpp 7 Mar 2000 13:18:27 -0000 1.12
+++ src/Utilities/Pool.cmpl.cpp 10 Jan 2003 23:53:36 -0000
@@ -41,14 +41,14 @@
Pool::Pool(size_t sz)
:
+ // The first one. Start out with nothing there.
+ head_m(0),
// The number of outstanding allocs.
outstandingAllocs_m(0),
// The size of each block
bsize_m(roundToAlign(sz)),
// Number of blocks
- nblock_m(blocksInPage(bsize_m)),
- // The first one. Start out with nothing there.
- head_m(0)
+ nblock_m(blocksInPage(bsize_m))
{
}
@@ -60,14 +60,14 @@
Pool::Pool()
:
+ // The first one. Start out with nothing there.
+ head_m(0),
// The number of outstanding allocs.
outstandingAllocs_m(0),
// The size of each block
bsize_m(0),
// Number of blocks
- nblock_m(0),
- // The first one. Start out with nothing there.
- head_m(0)
+ nblock_m(0)
{
}
More information about the pooma-dev
mailing list