From 6ef6d6dfb0582e9fe04714c8c34250456bb75ce2 Mon Sep 17 00:00:00 2001 From: kichik Date: Sun, 17 Mar 2013 00:36:07 +0000 Subject: [PATCH] "#pragma diagnostic push" only works on gcc 4.6+ git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6305 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/exehead/Ui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/exehead/Ui.c b/Source/exehead/Ui.c index 5f47992b..0f62ab3a 100644 --- a/Source/exehead/Ui.c +++ b/Source/exehead/Ui.c @@ -1104,13 +1104,13 @@ static BOOL CALLBACK DirProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPar total = (unsigned) sumsecsfield(size_kb); -#ifdef __GNUC__ +#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wmaybe-uninitialized" // available_set is checked first so available is initialized #endif if (available_set && available < total) error = NSIS_INSTDIR_NOT_ENOUGH_SPACE; -#ifdef __GNUC__ +#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6) #pragma GCC diagnostic pop #endif