From: Michael R Sweet Date: Tue, 19 Nov 2019 16:19:24 +0000 (-0500) Subject: LGTM only supports C++ style comments... X-Git-Tag: v2.3.1~19 X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fcups.git;a=commitdiff_plain;h=2bae6fc51889f1938b05c35bf6965a1826a2d834 LGTM only supports C++ style comments... --- diff --git a/backend/usb-libusb.c b/backend/usb-libusb.c index 9740c14d5..393fe65ee 100644 --- a/backend/usb-libusb.c +++ b/backend/usb-libusb.c @@ -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 ++) { /* diff --git a/cgi-bin/var.c b/cgi-bin/var.c index c5fde0124..349a21845 100644 --- a/cgi-bin/var.c +++ b/cgi-bin/var.c @@ -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);