diff options
author | Berke Viktor <bviktor@hexchat.org> | 2012-11-10 18:26:45 +0100 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2012-11-10 18:26:45 +0100 |
commit | ed970381fb914c413b88718bb7756b0f1282cfad (patch) | |
tree | 348e76fe96a72d46950fe7aa21f71e1c84ab09d0 /src/fe-gtk | |
parent | 584b89bb022c3cb22b45b1285652bb3b5f33ed81 (diff) |
Eliminate some more warnings and hide less warnings in VS
Diffstat (limited to 'src/fe-gtk')
-rw-r--r-- | src/fe-gtk/fe-gtk-xp.vcxproj | 2 | ||||
-rw-r--r-- | src/fe-gtk/fe-gtk.vcxproj | 2 | ||||
-rw-r--r-- | src/fe-gtk/setup.c | 9 |
3 files changed, 8 insertions, 5 deletions
diff --git a/src/fe-gtk/fe-gtk-xp.vcxproj b/src/fe-gtk/fe-gtk-xp.vcxproj index 753a71f0..94ebd4a0 100644 --- a/src/fe-gtk/fe-gtk-xp.vcxproj +++ b/src/fe-gtk/fe-gtk-xp.vcxproj @@ -65,7 +65,7 @@ <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;$(OwnFlags);%(PreprocessorDefinitions)</PreprocessorDefinitions> <AdditionalIncludeDirectories>$(DepsRoot)\include;$(Glib);$(Gtk);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <MultiProcessorCompilation>true</MultiProcessorCompilation> - <DisableSpecificWarnings>4244;4267</DisableSpecificWarnings> + <DisableSpecificWarnings>4244</DisableSpecificWarnings> </ClCompile> <Link> <SubSystem>Windows</SubSystem> diff --git a/src/fe-gtk/fe-gtk.vcxproj b/src/fe-gtk/fe-gtk.vcxproj index 0bc479c7..45abf752 100644 --- a/src/fe-gtk/fe-gtk.vcxproj +++ b/src/fe-gtk/fe-gtk.vcxproj @@ -62,7 +62,7 @@ <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;$(OwnFlags);%(PreprocessorDefinitions)</PreprocessorDefinitions> <AdditionalIncludeDirectories>$(DepsRoot)\include;$(Glib);$(Gtk);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <MultiProcessorCompilation>true</MultiProcessorCompilation> - <DisableSpecificWarnings>4244;4267;4996</DisableSpecificWarnings> + <DisableSpecificWarnings>4244;4996</DisableSpecificWarnings> </ClCompile> <Link> <SubSystem>Windows</SubSystem> diff --git a/src/fe-gtk/setup.c b/src/fe-gtk/setup.c index d3964557..7f6e37ff 100644 --- a/src/fe-gtk/setup.c +++ b/src/fe-gtk/setup.c @@ -837,9 +837,12 @@ setup_hscale_cb (GtkHScale *wid, const setting *set) { static int tag = 0; - setup_set_int (&setup_prefs, set, gtk_range_get_value(GTK_RANGE(wid))); - if(tag == 0) - tag = g_idle_add ((GSourceFunc)setup_apply_tint, &tag); + setup_set_int (&setup_prefs, set, (int) gtk_range_get_value (GTK_RANGE (wid))); + + if (tag == 0) + { + tag = g_idle_add ((GSourceFunc) setup_apply_tint, &tag); + } } static void |