mirror of
https://github.com/moparisthebest/hexchat
synced 2024-12-21 23:28:51 -05:00
Eliminate even more warnings and bump warning level to 3
Shouldn't need to go any higher, level 4+ gives insane warnings
This commit is contained in:
parent
cb0f6c8c91
commit
ea0d3059f4
@ -29,6 +29,7 @@
|
||||
#include "fe.h"
|
||||
#include "text.h"
|
||||
#include "hexchatc.h"
|
||||
#include "typedef.h"
|
||||
|
||||
#ifdef WIN32
|
||||
#include <io.h>
|
||||
|
@ -36,6 +36,7 @@
|
||||
#include "text.h"
|
||||
#include "util.h"
|
||||
#include "hexchatc.h"
|
||||
#include "typedef.h"
|
||||
|
||||
|
||||
int ignored_ctcp = 0; /* keep a count of all we ignore */
|
||||
|
@ -44,6 +44,7 @@
|
||||
typedef struct session hexchat_context;
|
||||
#include "hexchat-plugin.h"
|
||||
#include "plugin.h"
|
||||
#include "typedef.h"
|
||||
|
||||
|
||||
#include "hexchatc.h"
|
||||
|
@ -43,6 +43,7 @@
|
||||
#include "outbound.h"
|
||||
#include "hexchatc.h"
|
||||
#include "text.h"
|
||||
#include "typedef.h"
|
||||
#ifdef WIN32
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
@ -1,3 +1,8 @@
|
||||
#ifndef HEXCHAT_TYPEDEF_H
|
||||
#define HEXCHAT_TYPEDEF_H
|
||||
|
||||
#ifdef WIN32
|
||||
|
||||
#ifndef SSIZE_T_DEFINED
|
||||
#ifdef ssize_t
|
||||
#undef ssize_t
|
||||
@ -9,3 +14,12 @@ typedef _W64 int ssize_t;
|
||||
#endif
|
||||
#define SSIZE_T_DEFINED
|
||||
#endif
|
||||
|
||||
#ifndef fstat
|
||||
#define fstat _fstat
|
||||
#define stat _stat
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@ -55,6 +55,7 @@
|
||||
#include "../common/util.h"
|
||||
#include "../common/text.h"
|
||||
#include "../common/plugin.h"
|
||||
#include "../common/typedef.h"
|
||||
#include <gdk/gdkkeysyms.h>
|
||||
#include "gtkutil.h"
|
||||
#include "menu.h"
|
||||
|
@ -51,6 +51,7 @@
|
||||
#include "../common/util.h"
|
||||
#include "../common/cfgfiles.h"
|
||||
#include "../common/hexchatc.h"
|
||||
#include "../common/typedef.h"
|
||||
#include "gtkutil.h"
|
||||
#include "pixmaps.h"
|
||||
|
||||
|
@ -34,6 +34,7 @@
|
||||
#include "../common/hexchat.h"
|
||||
#include "../common/util.h"
|
||||
#include "../common/cfgfiles.h"
|
||||
#include "../common/typedef.h"
|
||||
|
||||
|
||||
GdkColor colors[] = {
|
||||
|
@ -60,7 +60,7 @@ pixmap_load_from_file_real (char *file)
|
||||
if (!img)
|
||||
return NULL;
|
||||
gdk_pixbuf_render_pixmap_and_mask (img, &pixmap, NULL, 128);
|
||||
gdk_pixbuf_unref (img);
|
||||
g_object_unref (img);
|
||||
|
||||
return pixmap;
|
||||
}
|
||||
|
@ -11,7 +11,8 @@
|
||||
<YourPerl516Path>c:\mozilla-build\perl-5.16</YourPerl516Path>
|
||||
<YourPythonPath>c:\mozilla-build\python-2.7</YourPythonPath>
|
||||
<!-- YOU SHOULDN'T TOUCH ANYTHING BELOW -->
|
||||
<OwnFlags>G_DISABLE_CAST_CHECKS;G_DISABLE_DEPRECATED;GDK_PIXBUF_DISABLE_DEPRECATED;GDK_DISABLE_DEPRECATED;HAVE_STRTOULL;strtoull=_strtoui64;strcasecmp=stricmp;strncasecmp=strnicmp;__inline__=__inline;</OwnFlags>
|
||||
<!-- G_DISABLE_DEPRECATED is unfeasible due to g_completion_* -->
|
||||
<OwnFlags>G_DISABLE_CAST_CHECKS;GDK_PIXBUF_DISABLE_DEPRECATED;GDK_DISABLE_DEPRECATED;HAVE_STRTOULL;strtoull=_strtoui64;strcasecmp=stricmp;strncasecmp=strnicmp;__inline__=__inline;</OwnFlags>
|
||||
<DepsRoot>$(YourDepsPath)\$(PlatformName)</DepsRoot>
|
||||
<GendefPath>$(YourGendefPath)</GendefPath>
|
||||
<LuaLib>lua51</LuaLib>
|
||||
@ -111,7 +112,7 @@ copy "$(ProgramFiles)\Codejock Software\ISSkin\ISSkinU.dll" "$(HexChatRel)"
|
||||
|
||||
<ItemDefinitionGroup>
|
||||
<ClCompile>
|
||||
<WarningLevel>Level2</WarningLevel>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
</ClCompile>
|
||||
</ItemDefinitionGroup>
|
||||
|
||||
|
@ -12,7 +12,8 @@
|
||||
<YourPerl516Path>c:\mozilla-build\perl-5.16</YourPerl516Path>
|
||||
<YourPythonPath>c:\mozilla-build\python-2.7</YourPythonPath>
|
||||
<!-- YOU SHOULDN'T TOUCH ANYTHING BELOW -->
|
||||
<OwnFlags>G_DISABLE_CAST_CHECKS;G_DISABLE_DEPRECATED;GDK_PIXBUF_DISABLE_DEPRECATED;GDK_DISABLE_DEPRECATED;HAVE_STRTOULL;strtoull=_strtoui64;strcasecmp=stricmp;strncasecmp=strnicmp;__inline__=__inline;</OwnFlags>
|
||||
<!-- G_DISABLE_DEPRECATED is unfeasible due to g_completion_* -->
|
||||
<OwnFlags>G_DISABLE_CAST_CHECKS;GDK_PIXBUF_DISABLE_DEPRECATED;GDK_DISABLE_DEPRECATED;HAVE_STRTOULL;strtoull=_strtoui64;strcasecmp=stricmp;strncasecmp=strnicmp;__inline__=__inline;</OwnFlags>
|
||||
<DepsRoot>$(YourDepsPath)\$(PlatformName)</DepsRoot>
|
||||
<GendefPath>$(YourGendefPath)</GendefPath>
|
||||
<MsgfmtPath>$(YourMsgfmtPath)</MsgfmtPath>
|
||||
@ -124,7 +125,7 @@ copy "$(ProgramFiles)\Codejock Software\ISSkin\ISSkinU.dll" "$(HexChatRel)"
|
||||
|
||||
<ItemDefinitionGroup>
|
||||
<ClCompile>
|
||||
<WarningLevel>Level2</WarningLevel>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
</ClCompile>
|
||||
</ItemDefinitionGroup>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user