]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix compile issue on macOS.
authorMichael R Sweet <michael.r.sweet@gmail.com>
Tue, 31 Jan 2023 01:10:01 +0000 (20:10 -0500)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Tue, 31 Jan 2023 01:10:01 +0000 (20:10 -0500)
backend/usb-darwin.c

index e7e10613b2b70abab9ea9bc46e40690aedd997b9..a4140508281c9482f9355a3b983d0967bf3f2292 100644 (file)
@@ -1816,7 +1816,6 @@ static CFStringRef copy_printer_interface_indexed_description(printer_interface_
                return CFSTR("");
 
        char buffer[(sizeof(description) - 2) / 2];
-       UInt8 maxLength = sizeof(buffer) - 1;
        length = (description[0] - 2) / 2;
 
        for (UInt8 i = 0; i < length; i++)