]> git.draconx.ca Git - cdecl99.git/blobdiff - src/explain.c
libcdecl: Silence GCC -Wunused-function warnings in the scanner.
[cdecl99.git] / src / explain.c
index 26d39e7a7037e1849c7749aabee11864f6ab5631..6d6aa87b76b83f9ae371e8758a841231cf3caf59 100644 (file)
 
 static void explain_specs(struct output_state *dst, struct cdecl_declspec *s, unsigned mask)
 {
-       size_t rc;
-
-       rc = cdecl__emit_specs(dst, s, mask);
-       cdecl__emit(dst, " " + !rc);
+       cdecl__emit(dst, cdecl__emit_specs(dst, s, mask));
 }
 
 /*
@@ -79,8 +76,7 @@ explain_array(struct output_state *dst, struct cdecl_array *a)
        if (a->vla) {
                rc = cdecl__emit(dst, a->vla);
        } else {
-               rc = snprintf(dst->dst, dst->dstlen, "%.0" PRIuMAX, a->length);
-               cdecl__advance(dst, rc);
+               rc = cdecl__emit_uint(dst, a->length);
        }
 
        cdecl__emit(dst, " of " + !rc);