Fix compiler warning
authorBehdad Esfahbod <behdad@behdad.org>
Tue, 12 Jan 2016 16:17:21 +0000 (16:17 +0000)
committerBehdad Esfahbod <behdad@behdad.org>
Tue, 12 Jan 2016 16:17:21 +0000 (16:17 +0000)
Fixes https://github.com/behdad/harfbuzz/issues/212

src/hb-ot-tag.cc

index 01ce920..9a6a120 100644 (file)
@@ -927,6 +927,7 @@ hb_ot_tag_to_language (hb_tag_t tag)
   }
 }
 
+#ifdef MAIN
 static inline void
 test_langs_sorted (void)
 {
@@ -942,7 +943,6 @@ test_langs_sorted (void)
   }
 }
 
-#ifdef MAIN
 int
 main (void)
 {