diff --git a/usr.bin/xlint/lint1/decl.c b/usr.bin/xlint/lint1/decl.c index c88a5a80b550..639c12372a3a 100644 --- a/usr.bin/xlint/lint1/decl.c +++ b/usr.bin/xlint/lint1/decl.c @@ -843,7 +843,7 @@ length(tp, name) switch (tp->t_tspec) { case FUNC: /* compiler takes size of function */ - lerror(msgs[12]); + lerror("%s", msgs[12]); /* NOTREACHED */ case STRUCT: case UNION: