aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarek Chalupa <mchqwerty@gmail.com>2015-07-03 09:33:23 +0200
committerBryce Harrington <bryce@osg.samsung.com>2015-07-10 17:17:46 -0700
commitba731f951c150ee83f0b8af03feec3fa18425ebf (patch)
treedaf4dd6c29784a751377a6ee1f40567801cb6033 /tests
parenttests: Don't increment variables inside an assert() (diff)
downloadwayland-ba731f951c150ee83f0b8af03feec3fa18425ebf.tar
wayland-ba731f951c150ee83f0b8af03feec3fa18425ebf.tar.gz
wayland-ba731f951c150ee83f0b8af03feec3fa18425ebf.tar.bz2
wayland-ba731f951c150ee83f0b8af03feec3fa18425ebf.tar.lz
wayland-ba731f951c150ee83f0b8af03feec3fa18425ebf.tar.xz
wayland-ba731f951c150ee83f0b8af03feec3fa18425ebf.tar.zst
wayland-ba731f951c150ee83f0b8af03feec3fa18425ebf.zip
fixed-benchmark: remove unused arguments in main
Fixed benchmark uses main(int argc, char *argv[]) but does not use the arguments, so we can replace them with void Signed-off-by: Marek Chalupa <mchqwerty@gmail.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/fixed-benchmark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fixed-benchmark.c b/tests/fixed-benchmark.c
index 8d73c83..277ecce 100644
--- a/tests/fixed-benchmark.c
+++ b/tests/fixed-benchmark.c
@@ -96,7 +96,7 @@ benchmark(const char *s, void (*f)(void))
s, elapsed.tv_sec, elapsed.tv_nsec);
}
-int main(int argc, char *argv[])
+int main(void)
{
benchmark("noop", noop_conversion);
benchmark("magic", magic_conversion);