diff options
author | Michael R Sweet <michael.r.sweet@gmail.com> | 2019-02-25 11:39:09 -0500 |
---|---|---|
committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2019-02-25 11:39:09 -0500 |
commit | d3454c3ef63898edb0ecb4c2b0e843a18ba607a4 (patch) | |
tree | 9464fa44d395a566104e1d454d9675a7278e104e /ppdc | |
parent | f05517caabee68aa069fa258522b9cba7ccee917 (diff) | |
download | cups-d3454c3ef63898edb0ecb4c2b0e843a18ba607a4.tar.gz |
Fix compiler warning from newer GCC (Issue #5533)
Diffstat (limited to 'ppdc')
-rw-r--r-- | ppdc/ppdc-array.cxx | 6 | ||||
-rw-r--r-- | ppdc/ppdc.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/ppdc/ppdc-array.cxx b/ppdc/ppdc-array.cxx index bfc1dcf95..fac8f0a29 100644 --- a/ppdc/ppdc-array.cxx +++ b/ppdc/ppdc-array.cxx @@ -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 ++) diff --git a/ppdc/ppdc.h b/ppdc/ppdc.h index a4d16ab23..075cdcb50 100644 --- a/ppdc/ppdc.h +++ b/ppdc/ppdc.h @@ -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 |