From 211282e62a781e1f6e1cff9bbcd243ce8ad5b228 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Sat, 7 Aug 1999 00:27:27 +0000 Subject: [PATCH] eliminated GNU warnings --- src/cxxTemplates/test/resourceLibTest.cc | 6 +++--- src/libCom/cxxTemplates/test/resourceLibTest.cc | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/cxxTemplates/test/resourceLibTest.cc b/src/cxxTemplates/test/resourceLibTest.cc index 8217c77cc..c7a1916a4 100644 --- a/src/cxxTemplates/test/resourceLibTest.cc +++ b/src/cxxTemplates/test/resourceLibTest.cc @@ -19,7 +19,7 @@ void empty(); class albert : public intId, public tsSLNode { public: albert (resTable< albert, intId > &atIn, unsigned idIn) : - at(atIn), intId(idIn) {} + intId(idIn), at(atIn) {} void show (unsigned /* level */) { } @@ -35,7 +35,7 @@ private: class fred : public intId, public tsSLNode { public: fred (const char *pNameIn, unsigned idIn) : - pName(pNameIn), intId(idIn) {} + intId(idIn), pName(pNameIn) {} void show (unsigned) { printf("fred %s\n", pName); @@ -89,7 +89,7 @@ int main() unsigned i; clock_t start, finish; double duration; - const int LOOPS = 50000; + const unsigned LOOPS = 50000; resTable > intTbl (8); resTable strTbl (8); fred fred0("fred0",0); diff --git a/src/libCom/cxxTemplates/test/resourceLibTest.cc b/src/libCom/cxxTemplates/test/resourceLibTest.cc index 8217c77cc..c7a1916a4 100644 --- a/src/libCom/cxxTemplates/test/resourceLibTest.cc +++ b/src/libCom/cxxTemplates/test/resourceLibTest.cc @@ -19,7 +19,7 @@ void empty(); class albert : public intId, public tsSLNode { public: albert (resTable< albert, intId > &atIn, unsigned idIn) : - at(atIn), intId(idIn) {} + intId(idIn), at(atIn) {} void show (unsigned /* level */) { } @@ -35,7 +35,7 @@ private: class fred : public intId, public tsSLNode { public: fred (const char *pNameIn, unsigned idIn) : - pName(pNameIn), intId(idIn) {} + intId(idIn), pName(pNameIn) {} void show (unsigned) { printf("fred %s\n", pName); @@ -89,7 +89,7 @@ int main() unsigned i; clock_t start, finish; double duration; - const int LOOPS = 50000; + const unsigned LOOPS = 50000; resTable > intTbl (8); resTable strTbl (8); fred fred0("fred0",0);