From f347e1f141348e7337c3d8b13648e83571481684 Mon Sep 17 00:00:00 2001 From: Peter Cheng Date: Tue, 9 Aug 2016 20:11:07 -0700 Subject: [PATCH] Fix incorrect unused variable pragma Removal of -Wunused-variable was affecting all following code --- Include/OpenNI.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Include/OpenNI.h b/Include/OpenNI.h index 52324b4e..81f09bf5 100644 --- a/Include/OpenNI.h +++ b/Include/OpenNI.h @@ -84,8 +84,8 @@ typedef struct /** This special URI can be passed to @ref Device::open() when the application has no concern for a specific device. */ #if ONI_PLATFORM != ONI_PLATFORM_WIN32 -#pragma GCC diagnostic ignored "-Wunused-variable" #pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-variable" #endif static const char* ANY_DEVICE = NULL; #if ONI_PLATFORM != ONI_PLATFORM_WIN32