Fix compiler warning from newer GCC (Issue #5533)
Esse commit está contido em:
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário