Fixed compiler warnings
This commit is contained in:
parent
95483268cf
commit
f8de826888
@ -187,7 +187,7 @@ namespace GUIEngine
|
||||
int m_max_label_width;
|
||||
|
||||
/** Max length of a label, in characters */
|
||||
int m_max_label_length;
|
||||
unsigned int m_max_label_length;
|
||||
|
||||
public:
|
||||
|
||||
@ -298,7 +298,7 @@ namespace GUIEngine
|
||||
/** Set approximately how many items are expected to be in this ribbon; will help the layout
|
||||
* algorithm next time add() is called */
|
||||
void setItemCountHint(int hint) { m_item_count_hint = hint; }
|
||||
|
||||
|
||||
/** Set max length of displayed text. */
|
||||
void setMaxLabelLength(int length) { m_max_label_length = length; }
|
||||
};
|
||||
|
@ -218,7 +218,7 @@ void ConnectToServer::asynchronousUpdate()
|
||||
} // while insufficient buffer
|
||||
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
|
||||
{
|
||||
sender.ip = 0x7f000001; // 127.0.0.1
|
||||
|
@ -30,6 +30,7 @@
|
||||
#include <assert.h>
|
||||
|
||||
#ifdef __MINGW32__
|
||||
# undef _WIN32_WINNT
|
||||
# define _WIN32_WINNT 0x501
|
||||
#endif
|
||||
|
||||
|
@ -310,7 +310,7 @@ namespace StringUtils
|
||||
for(int i=(int)dirs.size()-1; i>=0; i--)
|
||||
{
|
||||
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:"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user