]> granicus.if.org Git - gc/commit
Eliminate 'CORD_*printf is never used' cppcheck style warnings (cordtest)
authorIvan Maidanski <ivmai@mail.ru>
Thu, 27 Oct 2016 08:24:26 +0000 (11:24 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 31 Oct 2016 20:47:05 +0000 (23:47 +0300)
commitb5ee13f9ad015f2bb6bca9096d1552578cb19719
tree4e61c7d582f4062139e86501febe61fdff7a860f
parent8b22dc519ef87566762d5230cf610e6c14e780e5
Eliminate 'CORD_*printf is never used' cppcheck style warnings (cordtest)

Minimal testing of CORD_[v][f]printf is added to cordtest.

* cord/tests/cordtest.c: Include stdarg.h.
* cord/tests/cordtest.c: Reformat the comment describing cordtest.
* cord/tests/cordtest.c (wrap_vprintf, wrap_vfprintf): New function
(calling CORD_v[f]printf).
* cord/tests/cordtest.c (test_printf): Call CORD_printf, wrap_vfprintf,
wrap_vprintf for CORD_EMPTY (with the output to stdout); add TODO item.
cord/tests/cordtest.c