]> code.delx.au - gnu-emacs/commitdiff
Fix NS build with --enable-checking='glyphs'
authorEli Zaretskii <eliz@gnu.org>
Fri, 11 Sep 2015 07:56:18 +0000 (10:56 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 11 Sep 2015 07:56:18 +0000 (10:56 +0300)
* src/nsfns.m (unwind_create_frame): Make the preprocessor
conditionals for referencing 'dpyinfo' consistent throughout the
function.  (Bug#21426)

src/nsfns.m

index 89b9f7c4b62244ba67122c4da0a03c13e11d8ac5..9c805ac20d19541d915ff53e114cb22e0a3204e7 100644 (file)
@@ -1009,7 +1009,7 @@ unwind_create_frame (Lisp_Object frame)
       x_free_frame_resources (f);
       free_glyphs (f);
 
-#ifdef GLYPH_DEBUG
+#if defined GLYPH_DEBUG && defined ENABLE_CHECKING
       /* Check that reference counts are indeed correct.  */
       eassert (dpyinfo->terminal->image_cache->refcount == image_cache_refcount);
 #endif