From c41af221b74ca0f3ff959f2146d1e6d239efd33f Mon Sep 17 00:00:00 2001 From: Andy2 Date: Tue, 16 Aug 2011 19:17:47 -0700 Subject: [PATCH] fix non-debug compile warning --- xwords4/android/XWords4/jni/anddict.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xwords4/android/XWords4/jni/anddict.c b/xwords4/android/XWords4/jni/anddict.c index b4bfb7ba8..1e6ffe3c7 100644 --- a/xwords4/android/XWords4/jni/anddict.c +++ b/xwords4/android/XWords4/jni/anddict.c @@ -398,7 +398,10 @@ and_dictionary_destroy( DictionaryCtxt* dict ) XP_FREEP( ctxt->super.mpool, &ctxt->super.langName ); if ( NULL == ctxt->byteArray ) { /* mmap case */ - int err = munmap( ctxt->bytes, ctxt->bytesSize ); +#ifdef DEBUG + int err = +#endif + munmap( ctxt->bytes, ctxt->bytesSize ); XP_ASSERT( 0 == err ); } else { (*env)->ReleaseByteArrayElements( env, ctxt->byteArray, ctxt->bytes, 0 );