From 96e001088c7e22e992366d5a6dd03e300c858f43 Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Mon, 6 Oct 2014 13:47:13 -0400 Subject: [PATCH] tests: Fix fmt-t.c warning 'main' in fmt-t.c was declared as a prototype-less function, which triggers a warning, which is an error with --enable-checking. Fix it by declaring 'main' properly. Change-Id: I45cfec591acd0ef8d7836c79e997e8ffe29b9e38 Reviewed-on: http://gerrit.openafs.org/11539 Reviewed-by: Jeffrey Altman Tested-by: BuildBot Reviewed-by: Chas Williams - CONTRACTOR Reviewed-by: Nathaniel Filardo --- tests/opr/fmt-t.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/opr/fmt-t.c b/tests/opr/fmt-t.c index 4aa57d5209..eb4ce38024 100644 --- a/tests/opr/fmt-t.c +++ b/tests/opr/fmt-t.c @@ -42,7 +42,8 @@ testfmtr2(opr_fmt_ctx *ctx, char c, va_list va) { return 0; } -int main() +int +main(void) { static opr_fmtr fmtrs[256] = { ['s'] = testfmtr, ['t'] = testfmtr2 }; static char buf[100];