X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/559a723c1dcf8b3929ab3122fb04429d4abdda8e..93dcd337cd6941ce33f2dfdeaa61d9ad1e2ff79f:/src/common/quantize.cpp

diff --git a/src/common/quantize.cpp b/src/common/quantize.cpp
index b5936f21fb..57b311ec3a 100644
--- a/src/common/quantize.cpp
+++ b/src/common/quantize.cpp
@@ -43,12 +43,11 @@
 
 #ifndef WX_PRECOMP
     #include "wx/palette.h"
+    #include "wx/image.h"
 #endif
 
-#include "wx/image.h"
-
 #ifdef __WXMSW__
-#include "wx/msw/private.h"
+    #include "wx/msw/private.h"
 #endif
 
 #include <stdlib.h>
@@ -1622,7 +1621,9 @@ bool wxQuantize::Quantize(const wxImage& src, wxImage& dest,
         delete[] g;
         delete[] b;
     }
-#endif // wxUSE_PALETTE
+#else // !wxUSE_PALETTE
+    wxUnusedVar(pPalette);
+#endif // wxUSE_PALETTE/!wxUSE_PALETTE
 
     return true;
 }