From a832f6f13a5068c00c121bd9a01fec28587ba351 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 26 Dec 2003 20:04:29 +0000 Subject: [PATCH] Fixed UNUSED Replaced obsolete syntax of __attribute__((unused)) in the middle of parameter declarations (which is no longer supported by GCC 3.1) by the current syntax (attribute at the end). Thanks to pixel@mandrakesoft.com for reporting this problem. git-archimport-id: mj@ucw.cz--public/pciutils--main--2.2--patch-4 --- ChangeLog | 5 +++++ lib/access.c | 4 ++-- lib/dump.c | 8 ++++---- lib/filter.c | 4 ++-- lib/i386-ports.c | 4 ++-- lib/internal.h | 2 +- lib/proc.c | 2 +- 7 files changed, 17 insertions(+), 12 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4dd336e..3d769e7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2003-12-26 Martin Mares + * Replaced obsolete syntax of __attribute__((unused)) in the middle of + parameter declarations (which is no longer supported by GCC 3.1) by the + current syntax (attribute at the end). Thanks to pixel@mandrakesoft.com + for reporting this problem. + * Removed CVS $Id$ tags from all files. * Makefile: Added some more warnings. diff --git a/lib/access.c b/lib/access.c index 598cc7e..c0e04ef 100644 --- a/lib/access.c +++ b/lib/access.c @@ -1,7 +1,7 @@ /* * The PCI Library -- User Access * - * Copyright (c) 1997--1999 Martin Mares + * Copyright (c) 1997--2003 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ @@ -114,7 +114,7 @@ pci_generic_debug(char *msg, ...) } static void -pci_null_debug(char * UNUSED msg, ...) +pci_null_debug(char *msg UNUSED, ...) { } diff --git a/lib/dump.c b/lib/dump.c index 2155344..90293e4 100644 --- a/lib/dump.c +++ b/lib/dump.c @@ -1,7 +1,7 @@ /* * The PCI Library -- Reading of Bus Dumps * - * Copyright (c) 1997--1999 Martin Mares + * Copyright (c) 1997--2003 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ @@ -68,12 +68,12 @@ dump_init(struct pci_access *a) } static void -dump_cleanup(struct pci_access * UNUSED a) +dump_cleanup(struct pci_access *a UNUSED) { } static void -dump_scan(struct pci_access * UNUSED a) +dump_scan(struct pci_access *a UNUSED) { } @@ -95,7 +95,7 @@ dump_read(struct pci_dev *d, int pos, byte *buf, int len) } static int -dump_write(struct pci_dev * UNUSED d, int UNUSED pos, byte * UNUSED buf, int UNUSED len) +dump_write(struct pci_dev *d UNUSED, int pos UNUSED, byte *buf UNUSED, int len UNUSED) { d->access->error("Writing to dump files is not supported."); return 0; diff --git a/lib/filter.c b/lib/filter.c index 9d2d39f..37e15cc 100644 --- a/lib/filter.c +++ b/lib/filter.c @@ -1,7 +1,7 @@ /* * Linux PCI Library -- Device Filtering * - * Copyright (c) 1998--2002 Martin Mares + * Copyright (c) 1998--2003 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ @@ -12,7 +12,7 @@ #include "internal.h" void -pci_filter_init(struct pci_access * UNUSED a, struct pci_filter *f) +pci_filter_init(struct pci_access *a UNUSED, struct pci_filter *f) { f->bus = f->slot = f->func = -1; f->vendor = f->device = -1; diff --git a/lib/i386-ports.c b/lib/i386-ports.c index 79bbdfb..b0d05c4 100644 --- a/lib/i386-ports.c +++ b/lib/i386-ports.c @@ -1,7 +1,7 @@ /* * The PCI Library -- Direct Configuration access via i386 Ports * - * Copyright (c) 1997--1999 Martin Mares + * Copyright (c) 1997--2003 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ @@ -34,7 +34,7 @@ conf12_init(struct pci_access *a) } static void -conf12_cleanup(struct pci_access * UNUSED a) +conf12_cleanup(struct pci_access *a UNUSED) { iopl(3); intel_iopl_set = -1; diff --git a/lib/internal.h b/lib/internal.h index f40ca9f..3c6187e 100644 --- a/lib/internal.h +++ b/lib/internal.h @@ -1,7 +1,7 @@ /* * The PCI Library -- Internal Include File * - * Copyright (c) 1997--2000 Martin Mares + * Copyright (c) 1997--2003 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ diff --git a/lib/proc.c b/lib/proc.c index d18a0db..3e09a28 100644 --- a/lib/proc.c +++ b/lib/proc.c @@ -1,7 +1,7 @@ /* * The PCI Library -- Configuration Access via /proc/bus/pci * - * Copyright (c) 1997--1999 Martin Mares + * Copyright (c) 1997--2003 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ -- 2.39.5