Cleanup: silence unused parameter `ps` warning
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Tue, 3 Dec 2019 21:07:44 +0000 (16:07 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 13 Feb 2020 17:11:08 +0000 (12:11 -0500)
commitd8eba881c802082f3c775f00f115b2273b30a641
treea9ce405ab1d0bd983064a8574acd2eaae1f9eb5f
parent4e79769fe2af2d3e6ed2c14ef0058ed3a077fddc
Cleanup: silence unused parameter `ps` warning

This function was copied here from one of the BSDs by this commit:
e5bc3b0f4d6c0407492ebdea863483925393e1bc with the /*ARGSUSED*/
lint-style comment to prevent any `unused` warning.

It seems clang doesn't support those lint-style comments, so it prints
this warning:
  CC       libustsnprintf_la-core.lo
  mbrtowc_sb.c:39:68: error: unused parameter 'ps' [-Werror,-Wunused-parameter]
  ust_safe_mbrtowc(wchar_t *pwc, const char *s, size_t n, mbstate_t *ps)

So mark that parameter as unused to prevent any warning.

We could also simply remove the unused parameter and change the
signature of the function.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I09f4fd3938058ed985c1525d8b9b06a27529691e
snprintf/mbrtowc_sb.c
This page took 0.024538 seconds and 4 git commands to generate.