]> diplodocus.org Git - nmh/commit
On some platforms, -D_FORTIFY_SOURCE=2 warns about ignoring the
authorDavid Levine <levinedl@acm.org>
Sun, 7 Sep 2014 14:56:21 +0000 (09:56 -0500)
committerDavid Levine <levinedl@acm.org>
Sun, 7 Sep 2014 14:56:21 +0000 (09:56 -0500)
commitb2cc954248dff07883ef749c1c2851dd07e0d400
tree2b1ed0683040b45e45545928cb6d8202a4ae1e89
parentcf1f3bdaa19bf1b5e1e99ee1e8a28d61a524395e
On some platforms, -D_FORTIFY_SOURCE=2 warns about ignoring the
return value from mbtowc() even when it is called to reset the
shift state.  So wrap that in an if statement with a null body.
sbr/charstring.c
sbr/fmt_scan.c
test/getcwidth.c