]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix compiler warning from newer GCC (Issue #5533)
authorMichael R Sweet <michael.r.sweet@gmail.com>
Mon, 25 Feb 2019 16:39:09 +0000 (11:39 -0500)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Mon, 25 Feb 2019 16:39:09 +0000 (11:39 -0500)
CHANGES.md
ppdc/ppdc-array.cxx
ppdc/ppdc.h

index 3871ee38a7d690e9a56e3f9dfbbfd357eb683f71..e814b41652846a1ff18ce3ae248e4d7a6630dd5f 100644 (file)
@@ -1,4 +1,4 @@
-CHANGES - 2.3b8 - 2019-02-21
+CHANGES - 2.3b8 - 2019-02-25
 ============================
 
 
@@ -31,6 +31,7 @@ Changes in CUPS v2.3b8
 - Added a USB quirks rule for Xerox printers (Issue #5523)
 - The scheduler's self-signed certificate did not include all of the alternate
   names for the server when using GNU TLS (Issue #5525)
+- Fixed a compiler warning with newer versions of GCC (Issue #5533)
 - Localization updates (Issue #5461, Issues #5471, Issue #5481, Issue #5486,
   Issue #5489, Issue #5491, Issue #5492, Issue #5493, Issue #5494, Issue #5495,
   Issue #5497, Issue #5499, Issue #5500, Issue #5501, Issue #5504)
index bfc1dcf95e119e3e5b30d4c05c64568ee36a04aa..fac8f0a29100d819258c21206cb86176302d69f8 100644 (file)
@@ -1,7 +1,7 @@
 //
 // Array class for the CUPS PPD Compiler.
 //
-// Copyright 2007-2014 by Apple Inc.
+// Copyright 2007-2019 by Apple Inc.
 // Copyright 2002-2005 by Easy Software Products.
 //
 // Licensed under Apache License v2.0.  See the file "LICENSE" for more information.
@@ -60,7 +60,7 @@ ppdcArray::~ppdcArray()
 {
   PPDC_DELETE;
 
-  for (int i = 0; i < count; i ++)
+  for (size_t i = 0; i < count; i ++)
     data[i]->release();
 
   if (alloc)
@@ -130,7 +130,7 @@ ppdcArray::next()
 void
 ppdcArray::remove(ppdcShared *d)               // I - Data element
 {
-  int  i;                                      // Looping var
+  size_t       i;                              // Looping var
 
 
   for (i = 0; i < count; i ++)
index a4d16ab2316777d5dd43192dd6cb3e4d0d0b7910..075cdcb5041539fd1c3e38edebaf77ee0e8fc041 100644 (file)
@@ -1,7 +1,7 @@
 //
 // Definitions for the CUPS PPD Compiler.
 //
-// Copyright 2007-2009 by Apple Inc.
+// Copyright 2007-2019 by Apple Inc.
 // Copyright 2002-2007 by Easy Software Products.
 //
 // Licensed under Apache License v2.0.  See the file "LICENSE" for more information.
@@ -105,7 +105,7 @@ class ppdcArray                             //// Shared Array
 {
   public:
 
-  int          count,                  // Number of elements
+  size_t       count,                  // Number of elements
                alloc,                  // Allocated elements
                current;                // Current element
   ppdcShared   **data;                 // Elements