aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2008-09-24 03:22:58 +0000
committerMike Buland <eichlan@xagasoft.com>2008-09-24 03:22:58 +0000
commit0975d66d2f06603f5e4016440b333aac88e2958a (patch)
treecd3767fb74c2475fd78bca9ff2d3ba825dd329f4
parent17df4c2b9616c29865b0d893cc797d4938a660a2 (diff)
downloadlibbu++-0975d66d2f06603f5e4016440b333aac88e2958a.tar.gz
libbu++-0975d66d2f06603f5e4016440b333aac88e2958a.tar.bz2
libbu++-0975d66d2f06603f5e4016440b333aac88e2958a.tar.xz
libbu++-0975d66d2f06603f5e4016440b333aac88e2958a.zip
Ok, now all the warnings are gone (except for those coming from nids, but that's
ok, nids is still in flux, they'll be gone soon).
-rw-r--r--src/fifo.cpp6
-rw-r--r--src/fstring.h4
-rw-r--r--src/hash.h14
-rw-r--r--src/list.h2
-rw-r--r--src/membuf.cpp2
-rw-r--r--src/minimacro.cpp8
-rw-r--r--src/minimacro.h4
-rw-r--r--src/paramproc.cpp6
-rw-r--r--src/process.cpp8
-rw-r--r--src/programchain.cpp2
-rw-r--r--src/protocol.cpp2
-rw-r--r--src/protocoltelnet.cpp2
-rw-r--r--src/protocoltelnet.h9
-rw-r--r--src/socket.cpp14
-rw-r--r--src/stdstream.cpp8
-rw-r--r--src/tafnode.cpp4
-rw-r--r--src/tafnode.h2
-rw-r--r--src/tests/bzip2.cpp8
-rw-r--r--src/tests/formula.cpp7
-rw-r--r--src/tests/fstring.cpp4
-rw-r--r--src/tests/itoserver.cpp4
-rw-r--r--src/tests/logger.cpp4
-rw-r--r--src/tests/mmparse.cpp2
-rw-r--r--src/tests/procs.cpp2
-rw-r--r--src/tests/telnetsrv.cpp4
-rw-r--r--src/unitsuite.cpp3
26 files changed, 84 insertions, 51 deletions
diff --git a/src/fifo.cpp b/src/fifo.cpp
index 2321cb6..f909e61 100644
--- a/src/fifo.cpp
+++ b/src/fifo.cpp
@@ -80,15 +80,15 @@ long Bu::Fifo::tell()
80 return -1; 80 return -1;
81} 81}
82 82
83void Bu::Fifo::seek( long offset ) 83void Bu::Fifo::seek( long )
84{ 84{
85} 85}
86 86
87void Bu::Fifo::setPos( long pos ) 87void Bu::Fifo::setPos( long )
88{ 88{
89} 89}
90 90
91void Bu::Fifo::setPosEnd( long pos ) 91void Bu::Fifo::setPosEnd( long )
92{ 92{
93} 93}
94 94
diff --git a/src/fstring.h b/src/fstring.h
index a9b4c95..b4cae3a 100644
--- a/src/fstring.h
+++ b/src/fstring.h
@@ -138,7 +138,7 @@ namespace Bu
138 { 138 {
139 if( !pData ) return; 139 if( !pData ) return;
140 long nLen; 140 long nLen;
141 for( nLen = 0; pData[nLen] != (chr)0; nLen++ ); 141 for( nLen = 0; pData[nLen] != (chr)0; nLen++ ) { }
142 if( nLen == 0 ) 142 if( nLen == 0 )
143 return; 143 return;
144 144
@@ -220,7 +220,7 @@ namespace Bu
220 if( pData == NULL ) 220 if( pData == NULL )
221 return; 221 return;
222 long nLen; 222 long nLen;
223 for( nLen = 0; pData[nLen] != (chr)0; nLen++ ); 223 for( nLen = 0; pData[nLen] != (chr)0; nLen++ ) { }
224 224
225 Chunk *pNew = newChunk( nLen ); 225 Chunk *pNew = newChunk( nLen );
226 cpy( pNew->pData, pData, nLen ); 226 cpy( pNew->pData, pData, nLen );
diff --git a/src/hash.h b/src/hash.h
index 25dc509..2810e35 100644
--- a/src/hash.h
+++ b/src/hash.h
@@ -39,7 +39,7 @@ namespace Bu
39 39
40 struct __calcNextTSize_fast 40 struct __calcNextTSize_fast
41 { 41 {
42 uint32_t operator()( uint32_t nCapacity, uint32_t nFill, uint32_t nDeleted ) const 42 uint32_t operator()( uint32_t nCapacity, uint32_t, uint32_t nDeleted ) const
43 { 43 {
44 if( nDeleted >= nCapacity/2 ) 44 if( nDeleted >= nCapacity/2 )
45 return nCapacity; 45 return nCapacity;
@@ -506,7 +506,7 @@ namespace Bu
506 { 506 {
507 uint32_t hash = __calcHashCode( k ); 507 uint32_t hash = __calcHashCode( k );
508 bool bFill; 508 bool bFill;
509 uint32_t nPos = probe( hash, k, bFill, false ); 509 uint32_t nPos = probe( hash, k, bFill );
510 510
511 if( bFill ) 511 if( bFill )
512 { 512 {
@@ -533,6 +533,14 @@ namespace Bu
533 533
534 return bFill; 534 return bFill;
535 } 535 }
536
537 virtual bool has( key k ) const
538 {
539 bool bFill;
540 probe( __calcHashCode( k ), k, bFill );
541
542 return bFill;
543 }
536 544
537 /** 545 /**
538 * Iteration structure for iterating through the hash. 546 * Iteration structure for iterating through the hash.
@@ -979,7 +987,7 @@ namespace Bu
979 return nCur; 987 return nCur;
980 } 988 }
981 989
982 uint32_t probe( uint32_t hash, key k, bool &bFill, bool rehash=true ) const 990 uint32_t probe( uint32_t hash, key k, bool &bFill ) const
983 { 991 {
984 uint32_t nCur = hash%nCapacity; 992 uint32_t nCur = hash%nCapacity;
985 993
diff --git a/src/list.h b/src/list.h
index 2a40013..e5d7ceb 100644
--- a/src/list.h
+++ b/src/list.h
@@ -576,7 +576,7 @@ namespace Bu
576 return *pLast->pValue; 576 return *pLast->pValue;
577 } 577 }
578 578
579 const bool isEmpty() const 579 bool isEmpty() const
580 { 580 {
581 return (nSize == 0); 581 return (nSize == 0);
582 } 582 }
diff --git a/src/membuf.cpp b/src/membuf.cpp
index 459282e..6d850bf 100644
--- a/src/membuf.cpp
+++ b/src/membuf.cpp
@@ -116,7 +116,7 @@ bool Bu::MemBuf::isBlocking()
116 return true; 116 return true;
117} 117}
118 118
119void Bu::MemBuf::setBlocking( bool bBlocking ) 119void Bu::MemBuf::setBlocking( bool )
120{ 120{
121} 121}
122 122
diff --git a/src/minimacro.cpp b/src/minimacro.cpp
index ecacd79..6fc5382 100644
--- a/src/minimacro.cpp
+++ b/src/minimacro.cpp
@@ -73,7 +73,7 @@ Bu::FString Bu::MiniMacro::parseRepl()
73 bool bIsFirst = true; 73 bool bIsFirst = true;
74 for( const char *sNext = sCur;;) 74 for( const char *sNext = sCur;;)
75 { 75 {
76 for(; *sNext != ':' && *sNext != '}' && *sNext != '\0'; sNext++ ); 76 for(; *sNext != ':' && *sNext != '}' && *sNext != '\0'; sNext++ ) { }
77 if( *sNext == '\0' ) 77 if( *sNext == '\0' )
78 break; 78 break;
79 Bu::FString sName( sCur, (ptrdiff_t)sNext-(ptrdiff_t)sCur ); 79 Bu::FString sName( sCur, (ptrdiff_t)sNext-(ptrdiff_t)sCur );
@@ -113,7 +113,7 @@ Bu::FString Bu::MiniMacro::parseCmd()
113{ 113{
114 Bu::FString sOut; 114 Bu::FString sOut;
115 const char *sNext = sCur; 115 const char *sNext = sCur;
116 for(; *sNext != ':' && *sNext != '}' && *sNext != '\0'; sNext++ ); 116 for(; *sNext != ':' && *sNext != '}' && *sNext != '\0'; sNext++ ) { }
117 if( *sNext != '\0' ) 117 if( *sNext != '\0' )
118 { 118 {
119 Bu::FString sName( sCur, (ptrdiff_t)sNext-(ptrdiff_t)sCur ); 119 Bu::FString sName( sCur, (ptrdiff_t)sNext-(ptrdiff_t)sCur );
@@ -149,9 +149,9 @@ Bu::FString Bu::MiniMacro::callFunc(
149 StrList lsParams; 149 StrList lsParams;
150 for( const char *s = sFunc.getStr()+i+1; *s && *s != ')'; s++ ) 150 for( const char *s = sFunc.getStr()+i+1; *s && *s != ')'; s++ )
151 { 151 {
152 for(; *s == ' ' || *s == '\t' || *s == '\r' || *s == '\n'; s++ ); 152 for(; *s == ' ' || *s == '\t' || *s == '\r' || *s == '\n'; s++ ) { }
153 const char *sNext; 153 const char *sNext;
154 for( sNext = s; *sNext && *sNext != ')' && *sNext != ','; sNext++ ); 154 for( sNext = s; *sNext && *sNext != ')' && *sNext != ','; sNext++ ) { }
155 Bu::FString p( s, (ptrdiff_t)sNext-(ptrdiff_t)s ); 155 Bu::FString p( s, (ptrdiff_t)sNext-(ptrdiff_t)s );
156 lsParams.append( p ); 156 lsParams.append( p );
157 sNext++; 157 sNext++;
diff --git a/src/minimacro.h b/src/minimacro.h
index 45a8555..e0765d3 100644
--- a/src/minimacro.h
+++ b/src/minimacro.h
@@ -103,7 +103,7 @@ namespace Bu
103 FuncToUpper(){} 103 FuncToUpper(){}
104 virtual ~FuncToUpper(){} 104 virtual ~FuncToUpper(){}
105 virtual Bu::FString call( 105 virtual Bu::FString call(
106 const Bu::FString &sIn, StrList &lsParam ) 106 const Bu::FString &sIn, StrList & )
107 { 107 {
108 Bu::FString sOut( sIn ); 108 Bu::FString sOut( sIn );
109 sOut.toUpper(); 109 sOut.toUpper();
@@ -117,7 +117,7 @@ namespace Bu
117 FuncToLower(){} 117 FuncToLower(){}
118 virtual ~FuncToLower(){} 118 virtual ~FuncToLower(){}
119 virtual Bu::FString call( 119 virtual Bu::FString call(
120 const Bu::FString &sIn, StrList &lsParam ) 120 const Bu::FString &sIn, StrList & )
121 { 121 {
122 Bu::FString sOut( sIn ); 122 Bu::FString sOut( sIn );
123 sOut.toLower(); 123 sOut.toLower();
diff --git a/src/paramproc.cpp b/src/paramproc.cpp
index c8e6afd..7aeb819 100644
--- a/src/paramproc.cpp
+++ b/src/paramproc.cpp
@@ -435,19 +435,19 @@ Bu::ParamProc::ArgSpec *Bu::ParamProc::checkLetr( const char arg )
435 return NULL; 435 return NULL;
436} 436}
437 437
438int Bu::ParamProc::cmdParam( int argc, char *argv[] ) 438int Bu::ParamProc::cmdParam( int /*argc*/, char *argv[] )
439{ 439{
440 printf("Unhandled command parameter \"%s\" found!\n", argv[0] ); 440 printf("Unhandled command parameter \"%s\" found!\n", argv[0] );
441 return 0; 441 return 0;
442} 442}
443 443
444int Bu::ParamProc::unknownParam( int argc, char *argv[] ) 444int Bu::ParamProc::unknownParam( int /*argc*/, char *argv[] )
445{ 445{
446 printf("Unknown parameter \"%s\" found!\n", argv[0] ); 446 printf("Unknown parameter \"%s\" found!\n", argv[0] );
447 return 0; 447 return 0;
448} 448}
449 449
450int Bu::ParamProc::help( int argc, char *argv[] ) 450int Bu::ParamProc::help( int /*argc*/, char * /*argv*/ [] )
451{ 451{
452 std::list<Banner *>::const_iterator b = lBan.begin(); 452 std::list<Banner *>::const_iterator b = lBan.begin();
453 std::list<ArgSpec *>::const_iterator i; 453 std::list<ArgSpec *>::const_iterator i;
diff --git a/src/process.cpp b/src/process.cpp
index 5781600..f04d9fb 100644
--- a/src/process.cpp
+++ b/src/process.cpp
@@ -24,7 +24,7 @@ Bu::Process::Process( const char *sName, const char *argv, ...)
24 int iCnt = 0; 24 int iCnt = 0;
25 va_list ap; 25 va_list ap;
26 va_start( ap, argv ); 26 va_start( ap, argv );
27 for(; va_arg( ap, const char *); iCnt++ ); 27 for(; va_arg( ap, const char *); iCnt++ ) { }
28 va_end( ap ); 28 va_end( ap );
29 29
30 char const **list = new char const *[iCnt+2]; 30 char const **list = new char const *[iCnt+2];
@@ -137,15 +137,15 @@ long Bu::Process::tell()
137 return 0; 137 return 0;
138} 138}
139 139
140void Bu::Process::seek( long offset ) 140void Bu::Process::seek( long )
141{ 141{
142} 142}
143 143
144void Bu::Process::setPos( long pos ) 144void Bu::Process::setPos( long )
145{ 145{
146} 146}
147 147
148void Bu::Process::setPosEnd( long pos ) 148void Bu::Process::setPosEnd( long )
149{ 149{
150} 150}
151 151
diff --git a/src/programchain.cpp b/src/programchain.cpp
index d592969..1d005e2 100644
--- a/src/programchain.cpp
+++ b/src/programchain.cpp
@@ -85,7 +85,7 @@ void Bu::ProgramChain::emergencyShutdown()
85 lLink.clear(); 85 lLink.clear();
86} 86}
87 87
88LinkMessage *Bu::ProgramChain::broadcastIRM( LinkMessage *pMsgOut, ProgramLink *pSender ) 88LinkMessage *Bu::ProgramChain::broadcastIRM( LinkMessage *pMsgOut, ProgramLink * /*pSender*/ )
89{ 89{
90 for( Bu::List<Bu::ProgramLink *>::iterator i = lLink.begin(); 90 for( Bu::List<Bu::ProgramLink *>::iterator i = lLink.begin();
91 i != lLink.end(); i++ ) 91 i != lLink.end(); i++ )
diff --git a/src/protocol.cpp b/src/protocol.cpp
index 83ab4ba..51ff105 100644
--- a/src/protocol.cpp
+++ b/src/protocol.cpp
@@ -17,7 +17,7 @@ Bu::Protocol::~Protocol()
17{ 17{
18} 18}
19 19
20void Bu::Protocol::onMessage( Bu::Client *pClient, const Bu::FString &sMsg ) 20void Bu::Protocol::onMessage( Bu::Client *, const Bu::FString & )
21{ 21{
22} 22}
23 23
diff --git a/src/protocoltelnet.cpp b/src/protocoltelnet.cpp
index 504493b..8f8c435 100644
--- a/src/protocoltelnet.cpp
+++ b/src/protocoltelnet.cpp
@@ -571,7 +571,7 @@ bool Bu::ProtocolTelnet::Option::isLocalSet()
571 return (bool)(fOpts&fLocalIs); 571 return (bool)(fOpts&fLocalIs);
572} 572}
573 573
574void Bu::ProtocolTelnet::Option::remoteEnable( bool bSet ) 574void Bu::ProtocolTelnet::Option::remoteEnable( bool /*bSet*/ )
575{ 575{
576 return; 576 return;
577} 577}
diff --git a/src/protocoltelnet.h b/src/protocoltelnet.h
index 59004a0..532db4b 100644
--- a/src/protocoltelnet.h
+++ b/src/protocoltelnet.h
@@ -88,7 +88,7 @@ namespace Bu
88 * the line or not, the data will be cleared from the buffer when this 88 * the line or not, the data will be cleared from the buffer when this
89 * function returns, any changes made to the buffer will be destroyed. 89 * function returns, any changes made to the buffer will be destroyed.
90 */ 90 */
91 virtual void gotLine( Bu::FString &sLine ){}; 91 virtual void gotLine( Bu::FString & /*sLine*/ ){};
92 92
93 /** 93 /**
94 * Override this function to be notified of any new data that comes in 94 * Override this function to be notified of any new data that comes in
@@ -98,7 +98,7 @@ namespace Bu
98 * child class in this function, the buffer will never be cleared unless 98 * child class in this function, the buffer will never be cleared unless
99 * it happens in this function's override. 99 * it happens in this function's override.
100 */ 100 */
101 virtual void gotData( Bu::FString &sData ){}; 101 virtual void gotData( Bu::FString & /*sData*/ ){};
102 102
103 /** 103 /**
104 * Using this function to enable or disable canonical mode only affects 104 * Using this function to enable or disable canonical mode only affects
@@ -126,7 +126,7 @@ namespace Bu
126 * If you wish to know the current dimensions of the client window, 126 * If you wish to know the current dimensions of the client window,
127 * override this function, it will be called whenever the size changes. 127 * override this function, it will be called whenever the size changes.
128 */ 128 */
129 virtual void onSubNAWS( uint16_t iWidth, uint16_t iHeight ){}; 129 virtual void onSubNAWS( uint16_t /*iWidth*/, uint16_t /*iHeight*/ ){};
130 130
131 /** 131 /**
132 * This function is called whenever an unknown sub negotiation option is 132 * This function is called whenever an unknown sub negotiation option is
@@ -135,7 +135,8 @@ namespace Bu
135 * can handle it yourself if you'd like. Feel free to change the 135 * can handle it yourself if you'd like. Feel free to change the
136 * sSubBuf, it will be cleared as soon as this function returns anyway. 136 * sSubBuf, it will be cleared as soon as this function returns anyway.
137 */ 137 */
138 virtual void onSubUnknown( char cSubOpt, Bu::FString &sSubBuf ){}; 138 virtual void onSubUnknown( char /*cSubOpt*/,
139 Bu::FString & /*sSubBuf*/ ){};
139 140
140 private: 141 private:
141 /** 142 /**
diff --git a/src/socket.cpp b/src/socket.cpp
index f68fc37..651a2e1 100644
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -260,17 +260,17 @@ long Bu::Socket::tell()
260 throw UnsupportedException(); 260 throw UnsupportedException();
261} 261}
262 262
263void Bu::Socket::seek( long offset ) 263void Bu::Socket::seek( long )
264{ 264{
265 throw UnsupportedException(); 265 throw UnsupportedException();
266} 266}
267 267
268void Bu::Socket::setPos( long pos ) 268void Bu::Socket::setPos( long )
269{ 269{
270 throw UnsupportedException(); 270 throw UnsupportedException();
271} 271}
272 272
273void Bu::Socket::setPosEnd( long pos ) 273void Bu::Socket::setPosEnd( long )
274{ 274{
275 throw UnsupportedException(); 275 throw UnsupportedException();
276} 276}
@@ -336,6 +336,14 @@ bool Bu::Socket::isBlocking()
336 336
337void Bu::Socket::setBlocking( bool bBlocking ) 337void Bu::Socket::setBlocking( bool bBlocking )
338{ 338{
339 if( bBlocking )
340 {
341 fcntl( nSocket, F_SETFL, fcntl( nSocket, F_GETFL, 0 ) & ~O_NONBLOCK );
342 }
343 else
344 {
345 fcntl( nSocket, F_SETFL, fcntl( nSocket, F_GETFL, 0 ) | O_NONBLOCK );
346 }
339} 347}
340 348
341void Bu::Socket::flush() 349void Bu::Socket::flush()
diff --git a/src/stdstream.cpp b/src/stdstream.cpp
index 4bb7b17..844f495 100644
--- a/src/stdstream.cpp
+++ b/src/stdstream.cpp
@@ -34,15 +34,15 @@ long Bu::StdStream::tell()
34 return 0; 34 return 0;
35} 35}
36 36
37void Bu::StdStream::seek( long offset ) 37void Bu::StdStream::seek( long )
38{ 38{
39} 39}
40 40
41void Bu::StdStream::setPos( long pos ) 41void Bu::StdStream::setPos( long )
42{ 42{
43} 43}
44 44
45void Bu::StdStream::setPosEnd( long pos ) 45void Bu::StdStream::setPosEnd( long )
46{ 46{
47} 47}
48 48
@@ -91,7 +91,7 @@ bool Bu::StdStream::isBlocking()
91 return true; 91 return true;
92} 92}
93 93
94void Bu::StdStream::setBlocking( bool bBlocking ) 94void Bu::StdStream::setBlocking( bool )
95{ 95{
96} 96}
97 97
diff --git a/src/tafnode.cpp b/src/tafnode.cpp
index bdd96d7..35be4ff 100644
--- a/src/tafnode.cpp
+++ b/src/tafnode.cpp
@@ -5,7 +5,7 @@
5 * terms of the license contained in the file LICENSE. 5 * terms of the license contained in the file LICENSE.
6 */ 6 */
7 7
8#include "tafnode.h" 8#include "bu/tafnode.h"
9 9
10Bu::TafNode::TafNode( NodeType eType ) : 10Bu::TafNode::TafNode( NodeType eType ) :
11 eType( eType ) 11 eType( eType )
@@ -16,7 +16,7 @@ Bu::TafNode::~TafNode()
16{ 16{
17} 17}
18 18
19const Bu::TafNode::NodeType Bu::TafNode::getType() const 19Bu::TafNode::NodeType Bu::TafNode::getType() const
20{ 20{
21 return eType; 21 return eType;
22} 22}
diff --git a/src/tafnode.h b/src/tafnode.h
index 9f80781..fcdfdf5 100644
--- a/src/tafnode.h
+++ b/src/tafnode.h
@@ -33,7 +33,7 @@ namespace Bu
33 TafNode( NodeType eType ); 33 TafNode( NodeType eType );
34 virtual ~TafNode(); 34 virtual ~TafNode();
35 35
36 const NodeType getType() const; 36 NodeType getType() const;
37 37
38 private: 38 private:
39 NodeType eType; 39 NodeType eType;
diff --git a/src/tests/bzip2.cpp b/src/tests/bzip2.cpp
index 88c5a5d..de7c034 100644
--- a/src/tests/bzip2.cpp
+++ b/src/tests/bzip2.cpp
@@ -10,10 +10,16 @@
10 10
11int main( int argc, char *argv[] ) 11int main( int argc, char *argv[] )
12{ 12{
13 if( argc < 3 )
14 {
15 printf("usage: %s <in> <out>\n", argv[0] );
16 return -1;
17 }
18
13 char buf[1024]; 19 char buf[1024];
14 size_t nRead; 20 size_t nRead;
15 21
16 Bu::File f( "test.bz2", "wb" ); 22 Bu::File f( argv[0], "wb" );
17 Bu::BZip2 bz2( f ); 23 Bu::BZip2 bz2( f );
18 24
19 Bu::File fin( argv[1], "rb"); 25 Bu::File fin( argv[1], "rb");
diff --git a/src/tests/formula.cpp b/src/tests/formula.cpp
index 635d73f..429c306 100644
--- a/src/tests/formula.cpp
+++ b/src/tests/formula.cpp
@@ -9,10 +9,17 @@
9 9
10int main( int argc, char *argv[] ) 10int main( int argc, char *argv[] )
11{ 11{
12 if( argc < 2 )
13 {
14 printf("usage: %s <formula>\n", argv[0] );
15 return -1;
16 }
12 Bu::Formula<uint32_t> uForm; 17 Bu::Formula<uint32_t> uForm;
13 Bu::Formula<double> dForm; 18 Bu::Formula<double> dForm;
14 19
15 printf("u: %s = %u\n", argv[1], uForm.run( argv[1] ) ); 20 printf("u: %s = %u\n", argv[1], uForm.run( argv[1] ) );
16 printf("d: %s = %f\n", argv[1], dForm.run( argv[1] ) ); 21 printf("d: %s = %f\n", argv[1], dForm.run( argv[1] ) );
22
23 return 0;
17} 24}
18 25
diff --git a/src/tests/fstring.cpp b/src/tests/fstring.cpp
index 6288ccb..b392eb7 100644
--- a/src/tests/fstring.cpp
+++ b/src/tests/fstring.cpp
@@ -116,7 +116,7 @@ void doTimings()
116} 116}
117 117
118#define pem printf("---------\n%08tX: %s\n%08tX: %s\n", (ptrdiff_t)str.getStr(), str.getStr(), (ptrdiff_t)str2.getStr(), str2.getStr() ); 118#define pem printf("---------\n%08tX: %s\n%08tX: %s\n", (ptrdiff_t)str.getStr(), str.getStr(), (ptrdiff_t)str2.getStr(), str2.getStr() );
119int main( int argc, char *argv[] ) 119int main( )
120{ 120{
121 Bu::FString fs1; 121 Bu::FString fs1;
122 for( int j = 0; j < 500000; j++ ) fs1 += (char)('a'+(j%26)); 122 for( int j = 0; j < 500000; j++ ) fs1 += (char)('a'+(j%26));
@@ -148,5 +148,7 @@ int main( int argc, char *argv[] )
148 printf("%d == %d\n", Bu::__calcHashCode( str ), Bu::__calcHashCode( str.getStr() ) ); 148 printf("%d == %d\n", Bu::__calcHashCode( str ), Bu::__calcHashCode( str.getStr() ) );
149 149
150 doTimings(); 150 doTimings();
151
152 return 0;
151} 153}
152 154
diff --git a/src/tests/itoserver.cpp b/src/tests/itoserver.cpp
index f4ab726..319b11b 100644
--- a/src/tests/itoserver.cpp
+++ b/src/tests/itoserver.cpp
@@ -24,7 +24,7 @@ public:
24 TRACE(); 24 TRACE();
25 } 25 }
26 26
27 virtual void onNewConnection( Bu::Client *pClient ) 27 virtual void onNewConnection( Bu::Client * )
28 { 28 {
29 TRACE(); 29 TRACE();
30 // Huh... 30 // Huh...
@@ -50,7 +50,7 @@ public:
50 TRACE(); 50 TRACE();
51 } 51 }
52 52
53 virtual void onNewConnection( Bu::Client *pClient, int iPort ) 53 virtual void onNewConnection( Bu::Client *pClient, int )
54 { 54 {
55 TRACE(); 55 TRACE();
56 pClient->setProtocol( new ProtocolEcho() ); 56 pClient->setProtocol( new ProtocolEcho() );
diff --git a/src/tests/logger.cpp b/src/tests/logger.cpp
index 71a1ca2..04cefe8 100644
--- a/src/tests/logger.cpp
+++ b/src/tests/logger.cpp
@@ -17,7 +17,7 @@ class Thing
17 lineLog( 2, "Want a thing?"); 17 lineLog( 2, "Want a thing?");
18 } 18 }
19 19
20 void go( int i ) 20 void go( int )
21 { 21 {
22 lineLog( 1, "GO!!!!"); 22 lineLog( 1, "GO!!!!");
23 } 23 }
@@ -32,6 +32,6 @@ int main()
32 logHexDump( 5, "This is a test of the hex-dump facility", 16, "Random stuff"); 32 logHexDump( 5, "This is a test of the hex-dump facility", 16, "Random stuff");
33 33
34 Thing gh; 34 Thing gh;
35 gh.go( 6); 35 gh.go( 6 );
36} 36}
37 37
diff --git a/src/tests/mmparse.cpp b/src/tests/mmparse.cpp
index c60aa1c..9b79e4d 100644
--- a/src/tests/mmparse.cpp
+++ b/src/tests/mmparse.cpp
@@ -8,7 +8,7 @@
8#include "bu/minimacro.h" 8#include "bu/minimacro.h"
9#include "bu/fstring.h" 9#include "bu/fstring.h"
10 10
11int main( int argc, char *argv[] ) 11int main()
12{ 12{
13 Bu::MiniMacro mm; 13 Bu::MiniMacro mm;
14 14
diff --git a/src/tests/procs.cpp b/src/tests/procs.cpp
index c233040..c4b3ebc 100644
--- a/src/tests/procs.cpp
+++ b/src/tests/procs.cpp
@@ -2,7 +2,7 @@
2 2
3#include <stdio.h> 3#include <stdio.h>
4 4
5int main( int agrc, char *argv[] ) 5int main()
6{ 6{
7 //Bu::Process p( argv[1], argv+1 ); 7 //Bu::Process p( argv[1], argv+1 );
8 Bu::Process p("mplayer", "mplayer", "dvd://", "-framedrop", 8 Bu::Process p("mplayer", "mplayer", "dvd://", "-framedrop",
diff --git a/src/tests/telnetsrv.cpp b/src/tests/telnetsrv.cpp
index 9fe2881..f9457e2 100644
--- a/src/tests/telnetsrv.cpp
+++ b/src/tests/telnetsrv.cpp
@@ -57,7 +57,7 @@ public:
57 { 57 {
58 } 58 }
59 59
60 virtual void onNewConnection( Bu::Client *pClient, int iPort ) 60 virtual void onNewConnection( Bu::Client *pClient, int )
61 { 61 {
62 printf("New connection.\n"); 62 printf("New connection.\n");
63 63
@@ -75,7 +75,7 @@ private:
75 75
76}; 76};
77 77
78int main( int argc, char *argv[] ) 78int main()
79{ 79{
80 TelServer ts; 80 TelServer ts;
81 81
diff --git a/src/unitsuite.cpp b/src/unitsuite.cpp
index 5e59026..0008721 100644
--- a/src/unitsuite.cpp
+++ b/src/unitsuite.cpp
@@ -21,7 +21,8 @@ Bu::UnitSuite::~UnitSuite()
21{ 21{
22} 22}
23 23
24int Bu::UnitSuite::run( int argc, char *argv[] ) 24// Argument handling is coming soon, I promise.
25int Bu::UnitSuite::run( int /*argc*/, char * /*argv */ [] )
25{ 26{
26 for( TestList::iterator i = lTests.begin(); i != lTests.end(); i++ ) 27 for( TestList::iterator i = lTests.begin(); i != lTests.end(); i++ )
27 { 28 {