Loading...
stdio/xprintf_comp.c Libc-997.1.1 Libc-1669.40.2
--- Libc/Libc-997.1.1/stdio/xprintf_comp.c
+++ Libc/Libc-1669.40.2/stdio/xprintf_comp.c
@@ -30,11 +30,14 @@
 #include "xprintf_domain.h"
 #include "xprintf_private.h"
 
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wpointer-bool-conversion"
+
 void
 free_printf_comp(printf_comp_t pc)
 {
     if(!pc) return;
-    XL_RELEASE(pc->loc);
+    xlocale_release(pc->loc);
 #ifdef XPRINTF_PERF
     arrayfree(pc->pa);
     free(pc->pa);
@@ -68,7 +71,7 @@
     pc->fmt = (const char *)(pc + 1);
     strcpy((char *)pc->fmt, fmt);
     DEFAULT_CURRENT_LOCALE(loc);
-    XL_RETAIN(loc);
+    xlocale_retain(loc);
     pc->loc = loc;
     xprintf_domain_init();
     pthread_rwlock_rdlock(&domain->rwlock);
@@ -76,7 +79,7 @@
     saverrno = errno;
     pthread_rwlock_unlock(&domain->rwlock);
     if(ret < 0) {
-	XL_RELEASE(loc);
+	xlocale_release(loc);
 	pthread_mutex_destroy(&pc->mutex);
 	free(pc);
 	errno = saverrno;
@@ -84,3 +87,5 @@
     }
     return pc;
 }
+#pragma clang diagnostic pop
+