From: Paul Eggert Date: Sat, 26 Nov 2016 02:54:03 +0000 (-0800) Subject: numfmt: pacify Sun C 5.14 X-Git-Tag: v8.26~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e490178c39f707b0151d584c252286189f2ffcef;p=thirdparty%2Fcoreutils.git numfmt: pacify Sun C 5.14 * src/numfmt.c (main): Don't implicitly coerce pointer in bool initializer. Although it's portable C99 code, it's confusing. --- diff --git a/src/numfmt.c b/src/numfmt.c index a78f30732b..e4518160a1 100644 --- a/src/numfmt.c +++ b/src/numfmt.c @@ -1443,7 +1443,7 @@ main (int argc, char **argv) initialize_main (&argc, &argv); set_program_name (argv[0]); - locale_ok = setlocale (LC_ALL, ""); + locale_ok = !!setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE);