diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2016-01-28 15:55:11 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2016-01-28 15:55:11 +0800 |
commit | dfd74a271db84726e114b1b891d6d39bd9925f5b (patch) | |
tree | d6b1ccbde16d30542e870352375cad717b02302c | |
parent | 42699e37bea10fc51dd1a79888dfd8edae84c70a (diff) | |
download | glib-dfd74a271db84726e114b1b891d6d39bd9925f5b.tar.gz |
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 Casel Quinteiro.
-rw-r--r-- | glib/gwin32.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/glib/gwin32.c b/glib/gwin32.c index 0a9b2cf96..8c41aa683 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) |