]> diplodocus.org Git - nmh/commitdiff
uip/inc.c: Don't increment variable of type bool.
authorRalph Corderoy <ralph@inputplus.co.uk>
Tue, 30 May 2017 22:00:10 +0000 (23:00 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sat, 10 Jun 2017 17:45:43 +0000 (18:45 +0100)
gcc 7.1.1 is warning against incrementing `bool' variables.
Assign true instead.

uip/inc.c

index f38883943fb7b2bbd02182bd8c714b8e04ca1453..0890f831cbdcd7e92f6a7d26de6a49ad12fc6644 100644 (file)
--- a/uip/inc.c
+++ b/uip/inc.c
@@ -623,7 +623,7 @@ main (int argc, char **argv)
 
            case SCNFAT:
                trnflag = 0;
 
            case SCNFAT:
                trnflag = 0;
-               noisy++;
+               noisy = true;
                /* advise (cp, "unable to read"); already advised */
                break;
 
                /* advise (cp, "unable to read"); already advised */
                break;
 
@@ -764,7 +764,7 @@ main (int argc, char **argv)
 
            case SCNFAT:
                trnflag = 0;
 
            case SCNFAT:
                trnflag = 0;
-               noisy++;
+               noisy = true;
                /* advise (cp, "unable to read"); already advised */
                break;
 
                /* advise (cp, "unable to read"); already advised */
                break;