]> 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:57:23 +0000 (11:57 -0500)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Mon, 25 Feb 2019 16:57:23 +0000 (11:57 -0500)
ppdc/testcatalog.cxx
scheduler/cups-driverd.cxx

index a03deec5481df4dd4f831b6b34878ac3a2c32f18..3cb95429043dc0233fd63d1e7b8362baae1ab8af 100644 (file)
@@ -1,9 +1,10 @@
 //
 // Test program for message catalog class.
 //
-// Copyright 2008 by Apple Inc.
+// Copyright © 2008-2019 by Apple Inc.
 //
-// Licensed under Apache License v2.0.  See the file "LICENSE" for more information.
+// Licensed under Apache License v2.0.  See the file "LICENSE" for more
+// information.
 //
 
 //
@@ -34,7 +35,7 @@ main(int  argc,                               // I - Number of command-line arguments
   // Scan the command-line...
   catalog = new ppdcCatalog(NULL, argv[1]);
 
-  printf("%s: %d messages\n", argv[1], catalog->messages->count);
+  printf("%s: %u messages\n", argv[1], (unsigned)catalog->messages->count);
 
   for (m = (ppdcMessage *)catalog->messages->first();
        m;
index 3fd462bb834d4093c625f66333a2594fe0d42b91..07e78a49d39326d90eb71fb2d6a3b49be5e3f8f8 100644 (file)
@@ -5,10 +5,11 @@
  * created from driver information files, and dynamically generated PPD files
  * using driver helper programs.
  *
- * Copyright 2007-2018 by Apple Inc.
- * Copyright 1997-2007 by Easy Software Products.
+ * Copyright © 2007-2019 by Apple Inc.
+ * Copyright © 1997-2007 by Easy Software Products.
  *
- * Licensed under Apache License v2.0.  See the file "LICENSE" for more information.
+ * Licensed under Apache License v2.0.  See the file "LICENSE" for more
+ * information.
  */
 
 /*
@@ -365,8 +366,7 @@ cat_drv(const char *name,           /* I - PPD name */
     ppdcCatalog        *catalog;               // Message catalog in .drv file
 
 
-    fprintf(stderr, "DEBUG2: [cups-driverd] %d locales defined in \"%s\"...\n",
-            src->po_files->count, filename);
+    fprintf(stderr, "DEBUG2: [cups-driverd] %u locales defined in \"%s\"...\n", (unsigned)src->po_files->count, filename);
 
     locales = new ppdcArray();
     for (catalog = (ppdcCatalog *)src->po_files->first();