Mark dummy as unused since it's apparently needed on some platforms (OpenITG on OS...
authorMikko Rasa <tdb@tdb.fi>
Wed, 2 Nov 2011 12:01:22 +0000 (14:01 +0200)
committerMikko Rasa <tdb@tdb.fi>
Wed, 2 Nov 2011 12:01:22 +0000 (14:01 +0200)
src/pcre/study.c

index a40f721..410d691 100755 (executable)
@@ -38,6 +38,11 @@ the external pcre header. */
 
 #include "internal.h"
 
+#ifdef __GNUC__
+#define UNUSED __attribute__((unused))
+#else
+#define UNUSED
+#endif
 
 
 /*************************************************
@@ -96,7 +101,7 @@ code. Apparently IBM isn't going to fix the problem, and we would rather not
 disable optimization (in this module it actually makes a big difference, and
 the pcre module can use all the optimization it can get). */
 
-volatile int dummy;
+volatile int dummy UNUSED;
 
 do
   {