From dfd74a271db84726e114b1b891d6d39bd9925f5b Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Thu, 28 Jan 2016 15:55:11 +0800 Subject: [PATCH] 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. --- glib/gwin32.c | 10 ++++++---- 1 file 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)