]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
LGTM only supports C++ style comments...
authorMichael R Sweet <michael.r.sweet@gmail.com>
Tue, 19 Nov 2019 16:19:24 +0000 (11:19 -0500)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Tue, 19 Nov 2019 16:19:24 +0000 (11:19 -0500)
backend/usb-libusb.c
cgi-bin/var.c

index 9740c14d563e95ef58631f09a3683224ba14ece1..393fe65eeeeae55c1958797f2570e8d60b28ffcf 100644 (file)
@@ -878,7 +878,7 @@ find_device(usb_cb_t   cb,          /* I - Callback function */
           protocol   = 0;
 
          for (altset = 0, altptr = ifaceptr->altsetting;
-              altset < (uint8_t)ifaceptr->num_altsetting;
+              altset < ifaceptr->num_altsetting; // lgtm [cpp/comparison-with-wider-type]
               altset ++, altptr ++)
           {
           /*
index c5fde01240d1e9e4cb14c8511db60f7d8e094869..349a2184536b8c0474e720755d2d09c20d2c2af5 100644 (file)
@@ -983,7 +983,7 @@ cgi_initialize_post(void)
   */
 
   length = (size_t)strtol(content_length, NULL, 10);
-  data   = malloc(length + 1); /* lgtm [cpp/uncontrolled-allocation-size] */
+  data   = malloc(length + 1);         // lgtm [cpp/uncontrolled-allocation-size]
 
   if (data == NULL)
     return (0);