Fixed compiler warnings

This commit is contained in:
deve 2014-10-08 14:44:05 +02:00
parent 95483268cf
commit f8de826888
4 changed files with 5 additions and 4 deletions

View File

@ -187,7 +187,7 @@ namespace GUIEngine
int m_max_label_width; int m_max_label_width;
/** Max length of a label, in characters */ /** Max length of a label, in characters */
int m_max_label_length; unsigned int m_max_label_length;
public: public:
@ -298,7 +298,7 @@ namespace GUIEngine
/** Set approximately how many items are expected to be in this ribbon; will help the layout /** Set approximately how many items are expected to be in this ribbon; will help the layout
* algorithm next time add() is called */ * algorithm next time add() is called */
void setItemCountHint(int hint) { m_item_count_hint = hint; } void setItemCountHint(int hint) { m_item_count_hint = hint; }
/** Set max length of displayed text. */ /** Set max length of displayed text. */
void setMaxLabelLength(int length) { m_max_label_length = length; } void setMaxLabelLength(int length) { m_max_label_length = length; }
}; };

View File

@ -218,7 +218,7 @@ void ConnectToServer::asynchronousUpdate()
} // while insufficient buffer } // while insufficient buffer
for(unsigned int i=0; i<table->dwNumEntries; i++) for(unsigned int i=0; i<table->dwNumEntries; i++)
{ {
int ip = ntohl(table->table[i].dwAddr); unsigned int ip = ntohl(table->table[i].dwAddr);
if(sender.ip == ip) // this interface is ours if(sender.ip == ip) // this interface is ours
{ {
sender.ip = 0x7f000001; // 127.0.0.1 sender.ip = 0x7f000001; // 127.0.0.1

View File

@ -30,6 +30,7 @@
#include <assert.h> #include <assert.h>
#ifdef __MINGW32__ #ifdef __MINGW32__
# undef _WIN32_WINNT
# define _WIN32_WINNT 0x501 # define _WIN32_WINNT 0x501
#endif #endif

View File

@ -310,7 +310,7 @@ namespace StringUtils
for(int i=(int)dirs.size()-1; i>=0; i--) for(int i=(int)dirs.size()-1; i>=0; i--)
{ {
if(dirs[i].size()>1) continue; if(dirs[i].size()>1) continue;
if(i==dirs.size()-1) // last element if(i==(int)dirs.size()-1) // last element
{ {
dirs[i]+=":"; // turn "c" back into "c:" dirs[i]+=":"; // turn "c" back into "c:"
} }