emerge pciutils has various compiler warnings on i686 clean install from base system, stage3-i686-2005.0.tar.bz2 portage-20050717.tar.bz2 /etc/make.profile -> ../usr/portage/profiles/default-linux/x86/2005.0/ /usr/src/linux -> linux-2.6.12-gentoo-r6 Reproducible: Always Steps to Reproduce: 1. emerge pciutils 2. 3. Actual Results: Compiles with these warnings: access.c:124: warning: unused parameter `msg' dump.c:73: warning: unused parameter `a' dump.c:78: warning: unused parameter `a' dump.c:100: warning: unused parameter `buf' filter.c:17: warning: unused parameter `a' sysfs.c:89: warning: unused parameter `a' i386-ports.c:39: warning: unused parameter `a' Expected Results: clean compile livecd / # emerge pciutils Calculating dependencies ...done! >>> emerge (1 of 1) sys-apps/pciutils-2.1.11-r4 to / >>> Downloading ftp://mirror.iawnet.sandia.gov/pub/gentoo/distfiles/pci.ids-20041019.bz2 --17:13:53-- ftp://mirror.iawnet.sandia.gov/pub/gentoo/distfiles/pci.ids-20041019.bz2 => `/usr/portage/distfiles/pci.ids-20041019.bz2' Resolving mirror.iawnet.sandia.gov... 192.160.227.246 Connecting to mirror.iawnet.sandia.gov[192.160.227.246]:21... connected. Logging in as anonymous ... Logged in! ==> SYST ... done. ==> PWD ... done. ==> TYPE I ... done. ==> CWD /pub/gentoo/distfiles ... done. ==> PASV ... done. ==> RETR pci.ids-20041019.bz2 ... done. [ <=> ] 86,174 351.64K/s 17:13:54 (351.39 KB/s) - `/usr/portage/distfiles/pci.ids-20041019.bz2' saved [86174] >>> Downloading ftp://mirror.iawnet.sandia.gov/pub/gentoo/distfiles/pciutils-2.1.11.tar.gz --17:13:54-- ftp://mirror.iawnet.sandia.gov/pub/gentoo/distfiles/pciutils-2.1.11.tar.gz => `/usr/portage/distfiles/pciutils-2.1.11.tar.gz' Resolving mirror.iawnet.sandia.gov... 192.160.227.246 Connecting to mirror.iawnet.sandia.gov[192.160.227.246]:21... connected. Logging in as anonymous ... Logged in! ==> SYST ... done. ==> PWD ... done. ==> TYPE I ... done. ==> CWD /pub/gentoo/distfiles ... done. ==> PASV ... done. ==> RETR pciutils-2.1.11.tar.gz ... done. [ <=> ] 120,948 475.30K/s 17:13:55 (475.01 KB/s) - `/usr/portage/distfiles/pciutils-2.1.11.tar.gz' saved [120948] >>> md5 files ;-) pciutils-2.1.11-r4.ebuild >>> md5 files ;-) pciutils-2.1.11-r3.ebuild >>> md5 files ;-) pciutils-2.1.11-r5.ebuild >>> md5 files ;-) ChangeLog >>> md5 files ;-) metadata.xml >>> md5 files ;-) files/pcimodules-pciutils-2.1.11.diff >>> md5 files ;-) files/2.1.11-sysfs.patch >>> md5 files ;-) files/2.1.11-fix-pci-ids-location-refs.patch >>> md5 files ;-) files/pciutils-2.1.11-sysfs.patch >>> md5 files ;-) files/digest-pciutils-2.1.11-r3 >>> md5 files ;-) files/digest-pciutils-2.1.11-r4 >>> md5 files ;-) files/digest-pciutils-2.1.11-r5 >>> md5 files ;-) files/2.1.11-scan.patch >>> md5 files ;-) files/pciutils-2.1.11-fix-pci-ids-location-refs.patch >>> md5 files ;-) files/pciutils-2.1.11-gentoo-paths.patch >>> md5 src_uri ;-) pciutils-2.1.11.tar.gz >>> md5 src_uri ;-) pci.ids-20041019.bz2 >>> Unpacking source... >>> Unpacking pciutils-2.1.11.tar.gz to /var/tmp/portage/pciutils-2.1.11-r4/work >>> Unpacking pci.ids-20041019.bz2 to /var/tmp/portage/pciutils-2.1.11-r4/work * Applying pcimodules-pciutils-2.1.11.diff ... [ ok ] * Applying 2.1.11-sysfs.patch ... [ ok ] * Applying 2.1.11-fix-pci-ids-location-refs.patch ... [ ok ] * Applying 2.1.11-scan.patch ... [ ok ] * Updating pci.ids... [ ok ] >>> Source unpacked. Configuring libpci for your system... Linux/i386 2.6.11-gentoo-r3 Looking for access methods...sysfs proc i386-ports dump make -C lib all make[1]: Entering directory `/var/tmp/portage/pciutils-2.1.11-r4/work/pciutils-2.1.11/lib' i686-pc-linux-gnu-gcc -O2 -march=i686 -fomit-frame-pointer -fomit-frame-pointer -Wall -W -Wno-parentheses -Wstrict-prototypes -fPIC -c -o access.o access.c i686-pc-linux-gnu-gcc -O2 -march=i686 -fomit-frame-pointer -fomit-frame-pointer -Wall -W -Wno-parentheses -Wstrict-prototypes -fPIC -c -o generic.o generic.c access.c: In function `pci_null_debug': access.c:124: warning: unused parameter `msg' i686-pc-linux-gnu-gcc -O2 -march=i686 -fomit-frame-pointer -fomit-frame-pointer -Wall -W -Wno-parentheses -Wstrict-prototypes -fPIC -c -o dump.o dump.c i686-pc-linux-gnu-gcc -O2 -march=i686 -fomit-frame-pointer -fomit-frame-pointer -Wall -W -Wno-parentheses -Wstrict-prototypes -fPIC -c -o names.o names.c dump.c: In function `dump_cleanup': dump.c:73: warning: unused parameter `a' dump.c: In function `dump_scan': dump.c:78: warning: unused parameter `a' dump.c: In function `dump_write': dump.c:100: warning: unused parameter `buf' i686-pc-linux-gnu-gcc -O2 -march=i686 -fomit-frame-pointer -fomit-frame-pointer -Wall -W -Wno-parentheses -Wstrict-prototypes -fPIC -c -o filter.o filter.c filter.c: In function `pci_filter_init': filter.c:17: warning: unused parameter `a' i686-pc-linux-gnu-gcc -O2 -march=i686 -fomit-frame-pointer -fomit-frame-pointer -Wall -W -Wno-parentheses -Wstrict-prototypes -fPIC -c -o sysfs.o sysfs.c i686-pc-linux-gnu-gcc -O2 -march=i686 -fomit-frame-pointer -fomit-frame-pointer -Wall -W -Wno-parentheses -Wstrict-prototypes -fPIC -c -o proc.o proc.c sysfs.c: In function `sysfs_config': sysfs.c:89: warning: unused parameter `a' i686-pc-linux-gnu-gcc -O2 -march=i686 -fomit-frame-pointer -fomit-frame-pointer -Wall -W -Wno-parentheses -Wstrict-prototypes -fPIC -c -o i386-ports.o i386-ports.c i386-ports.c: In function `conf12_cleanup': i386-ports.c:39: warning: unused parameter `a' rm -f libpci.a ar rcs libpci.a access.o generic.o dump.o names.o filter.o sysfs.o proc.o i386-ports.o ranlib libpci.a make[1]: Leaving directory `/var/tmp/portage/pciutils-2.1.11-r4/work/pciutils-2.1.11/lib' make -C lib all i686-pc-linux-gnu-gcc -O2 -march=i686 -fomit-frame-pointer -fomit-frame-pointer -Wall -W -Wno-parentheses -Wstrict-prototypes -c -o lspci.o lspci.c make[1]: Entering directory `/var/tmp/portage/pciutils-2.1.11-r4/work/pciutils-2.1.11/lib' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/var/tmp/portage/pciutils-2.1.11-r4/work/pciutils-2.1.11/lib' i686-pc-linux-gnu-gcc -O2 -march=i686 -fomit-frame-pointer -fomit-frame-pointer -Wall -W -Wno-parentheses -Wstrict-prototypes -c -o common.o common.c i686-pc-linux-gnu-gcc -O2 -march=i686 -fomit-frame-pointer -fomit-frame-pointer -Wall -W -Wno-parentheses -Wstrict-prototypes -c -o setpci.o setpci.c i686-pc-linux-gnu-gcc -O2 -march=i686 -fomit-frame-pointer -fomit-frame-pointer -Wall -W -Wno-parentheses -Wstrict-prototypes -c -o pcimodules.o pcimodules.c M=`echo 2003-01-04 | sed 's/-01-/-January-/;s/-02-/-February-/;s/-03-/-March-/;s/-04-/-April-/;s/-05-/-May-/;s/-06-/-June-/;s/-07-/-July-/;s/-08-/-August-/;s/-09-/-September-/;s/-10-/-October-/;s/-11-/-November-/;s/-12-/-December-/;s/\(.*\)-\(.*\)-\(.*\)/\3 \2 \1/'` ; sed <lspci.man >lspci.8 "s/@TODAY@/$M/;s/@VERSION@/pciutils-2.1.11/;s#@SHAREDIR@#/usr/share#" M=`echo 2003-01-04 | sed 's/-01-/-January-/;s/-02-/-February-/;s/-03-/-March-/;s/-04-/-April-/;s/-05-/-May-/;s/-06-/-June-/;s/-07-/-July-/;s/-08-/-August-/;s/-09-/-September-/;s/-10-/-October-/;s/-11-/-November-/;s/-12-/-December-/;s/\(.*\)-\(.*\)-\(.*\)/\3 \2 \1/'` ; sed <setpci.man >setpci.8 "s/@TODAY@/$M/;s/@VERSION@/pciutils-2.1.11/;s#@SHAREDIR@#/usr/share#" sed <update-pciids.sh >update-pciids "s@^DEST=.*@DEST=/usr/share/misc/pci.ids@" M=`echo 2003-01-04 | sed 's/-01-/-January-/;s/-02-/-February-/;s/-03-/-March-/;s/-04-/-April-/;s/-05-/-May-/;s/-06-/-June-/;s/-07-/-July-/;s/-08-/-August-/;s/-09-/-September-/;s/-10-/-October-/;s/-11-/-November-/;s/-12-/-December-/;s/\(.*\)-\(.*\)-\(.*\)/\3 \2 \1/'` ; sed <update-pciids.man >update-pciids.8 "s/@TODAY@/$M/;s/@VERSION@/pciutils-2.1.11/;s#@SHAREDIR@#/usr/share#" M=`echo 2003-01-04 | sed 's/-01-/-January-/;s/-02-/-February-/;s/-03-/-March-/;s/-04-/-April-/;s/-05-/-May-/;s/-06-/-June-/;s/-07-/-July-/;s/-08-/-August-/;s/-09-/-September-/;s/-10-/-October-/;s/-11-/-November-/;s/-12-/-December-/;s/\(.*\)-\(.*\)-\(.*\)/\3 \2 \1/'` ; sed <pcimodules.man >pcimodules.8 "s/@TODAY@/$M/;s/@VERSION@/pciutils-2.1.11/;s#@SHAREDIR@#/usr/share#" i686-pc-linux-gnu-gcc lspci.o common.o lib/libpci.a -o lspci i686-pc-linux-gnu-gcc setpci.o common.o lib/libpci.a -o setpci i686-pc-linux-gnu-gcc pcimodules.o common.o lib/libpci.a -o pcimodules >>> Test phase [not enabled]: sys-apps/pciutils-2.1.11-r4 >>> Install pciutils-2.1.11-r4 into /var/tmp/portage/pciutils-2.1.11-r4/image/ category sys-apps >>> dosbin: making update-pciids executable... man: prepallstrip: strip: strip --strip-unneeded strip: strip --strip-unneeded sbin/setpci sbin/lspci sbin/pcimodules >>> Completed installing pciutils-2.1.11-r4 into /var/tmp/portage/pciutils-2.1.11-r4/image/ >>> Merging sys-apps/pciutils-2.1.11-r4 to / --- /sbin/ >>> /sbin/setpci >>> /sbin/lspci >>> /sbin/pcimodules >>> /sbin/update-pciids --- /usr/ --- /usr/share/ --- /usr/share/man/ --- /usr/share/man/man8/ >>> /usr/share/man/man8/lspci.8.gz >>> /usr/share/man/man8/setpci.8.gz >>> /usr/share/man/man8/pcimodules.8.gz >>> /usr/share/man/man8/update-pciids.8.gz --- /usr/share/misc/ >>> /usr/share/misc/pci.ids --- /usr/lib/ >>> /usr/lib/libpci.a --- /usr/include/ >>> /usr/include/pci/ >>> /usr/include/pci/config.h >>> /usr/include/pci/header.h >>> /usr/include/pci/internal.h >>> /usr/include/pci/pci.h >>> Regenerating /etc/ld.so.cache... * Caching service dependencies... >>> sys-apps/pciutils-2.1.11-r4 merged. >>> Recording sys-apps/pciutils in "world" favorites file... >>> clean: No packages selected for removal. >>> Auto-cleaning packages ... >>> No outdated packages were found on your system. * GNU info directory index is up-to-date.
ignore them
Better to file this with upstream development. It basically just means gcc's reserving some minor memory space for variables that'll never get used.
(In reply to comment #2) > Better to file this with upstream development. It basically just means gcc's > reserving some minor memory space for variables that'll never get used. Yes, thanks for both responses. Will drop a line. I'm kind of new to how the developers work, wasn't sure whether you have working relationships with upstream.
Some we do, some we don't. Depends on the upstream's tolerance of us (to put it one way).