]> diplodocus.org Git - nmh/commitdiff
Fixed test/getcwidth.c to build without MULTIBYTE_SUPPORT.
authorDavid Levine <levinedl@acm.org>
Fri, 7 Mar 2014 02:32:14 +0000 (20:32 -0600)
committerDavid Levine <levinedl@acm.org>
Fri, 7 Mar 2014 02:32:14 +0000 (20:32 -0600)
Found by cppcheck.

test/getcwidth.c

index 9e1ba65c456adb64fb82ce467b97088644a2eccc..4a8122b6e9170b0e085981962706d65b74f24f88 100644 (file)
@@ -30,6 +30,8 @@ int
 main(int argc, char *argv[])
 {
 #ifndef MULTIBYTE_SUPPORT
+       (void) argc;
+       (void) argv;
        fprintf(stderr, "Nmh was not configured with multibyte support\n");
        exit(1);
 #else /* MULTIBYTE_SUPPORT */
@@ -159,5 +161,5 @@ dumpwidth(void)
        if (width == lastwidth)
                printf("%04lX - %04lX = %d\n", (unsigned long int) low,
                       (unsigned long int) (wc), width);
-}
 #endif /* MULTIBYTE_SUPPORT */
+}