[glib/glib-2-46] gwin32.c: Avoid a GCC warning
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-46] gwin32.c: Avoid a GCC warning
- Date: Thu, 28 Jan 2016 08:02:41 +0000 (UTC)
commit ef7965b13fe8d6b55320a32681083e7ce6fdc08d
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Thu Jan 28 15:55:11 2016 +0800
gwin32.c: Avoid a GCC warning
Add a pair of braces to make things more clear, to avoid a warning
when -Wparentheses is used.
Reported by Ignacio Casal Quinteiro.
glib/gwin32.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/glib/gwin32.c b/glib/gwin32.c
index 0a9b2cf..8c41aa6 100644
--- a/glib/gwin32.c
+++ b/glib/gwin32.c
@@ -598,11 +598,13 @@ g_win32_check_windows_version (const gint major,
if (osverinfo.dwMajorVersion > major)
is_ver_checked = TRUE;
else if (osverinfo.dwMajorVersion == major)
- if (osverinfo.dwMinorVersion > minor)
- is_ver_checked = TRUE;
- else if (osverinfo.dwMinorVersion == minor)
- if (osverinfo.wServicePackMajor >= spver)
+ {
+ if (osverinfo.dwMinorVersion > minor)
+ is_ver_checked = TRUE;
+ else if (osverinfo.dwMinorVersion == minor)
+ if (osverinfo.wServicePackMajor >= spver)
is_ver_checked = TRUE;
+ }
/* Check OS Type */
if (is_ver_checked)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]