ec3ad0face
Rename the global 'adc' variable in order to avoid: tests/qtest/npcm7xx_adc-test.c:98:58: error: declaration shadows a variable in the global scope [-Werror,-Wshadow] static uint32_t adc_read_con(QTestState *qts, const ADC *adc) ^ tests/qtest/npcm7xx_adc-test.c:103:55: error: declaration shadows a variable in the global scope [-Werror,-Wshadow] static void adc_write_con(QTestState *qts, const ADC *adc, uint32_t value) ^ tests/qtest/npcm7xx_adc-test.c:108:59: error: declaration shadows a variable in the global scope [-Werror,-Wshadow] static uint32_t adc_read_data(QTestState *qts, const ADC *adc) ^ tests/qtest/npcm7xx_adc-test.c:119:53: error: declaration shadows a variable in the global scope [-Werror,-Wshadow] static void adc_qom_set(QTestState *qts, const ADC *adc, ^ tests/qtest/npcm7xx_adc-test.c:135:57: error: declaration shadows a variable in the global scope [-Werror,-Wshadow] static void adc_write_input(QTestState *qts, const ADC *adc, ^ tests/qtest/npcm7xx_adc-test.c:144:56: error: declaration shadows a variable in the global scope [-Werror,-Wshadow] static void adc_write_vref(QTestState *qts, const ADC *adc, uint32_t value) ^ tests/qtest/npcm7xx_adc-test.c:162:59: error: declaration shadows a variable in the global scope [-Werror,-Wshadow] static uint32_t adc_prescaler(QTestState *qts, const ADC *adc) ^ tests/qtest/npcm7xx_adc-test.c:175:64: error: declaration shadows a variable in the global scope [-Werror,-Wshadow] static void adc_wait_conv_finished(QTestState *qts, const ADC *adc, ^ tests/qtest/npcm7xx_adc-test.c:196:16: error: declaration shadows a variable in the global scope [-Werror,-Wshadow] const ADC *adc = adc_p; ^ tests/qtest/npcm7xx_adc-test.c:207:16: error: declaration shadows a variable in the global scope [-Werror,-Wshadow] const ADC *adc = adc_p; ^ tests/qtest/npcm7xx_adc-test.c:235:16: error: declaration shadows a variable in the global scope [-Werror,-Wshadow] const ADC *adc = adc_p; ^ tests/qtest/npcm7xx_adc-test.c:267:16: error: declaration shadows a variable in the global scope [-Werror,-Wshadow] const ADC *adc = adc_p; ^ tests/qtest/npcm7xx_adc-test.c:293:16: error: declaration shadows a variable in the global scope [-Werror,-Wshadow] const ADC *adc = adc_p; ^ tests/qtest/npcm7xx_adc-test.c:311:16: error: declaration shadows a variable in the global scope [-Werror,-Wshadow] const ADC *adc = adc_p; ^ tests/qtest/npcm7xx_adc-test.c:93:5: note: previous declaration is here ADC adc = { ^ Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-ID: <20231009100251.56019-8-philmd@linaro.org> Signed-off-by: Thomas Huth <thuth@redhat.com> |
||
---|---|---|
.. | ||
fuzz | ||
libqos | ||
ac97-test.c | ||
acpi-utils.c | ||
acpi-utils.h | ||
adm1272-test.c | ||
ahci-test.c | ||
am53c974-test.c | ||
arm-cpu-features.c | ||
aspeed_gpio-test.c | ||
aspeed_hace-test.c | ||
aspeed_smc-test.c | ||
bcm2835-dma-test.c | ||
bios-tables-test-allowed-diff.h | ||
bios-tables-test.c | ||
boot-order-test.c | ||
boot-sector.c | ||
boot-sector.h | ||
boot-serial-test.c | ||
cdrom-test.c | ||
cmsdk-apb-dualtimer-test.c | ||
cmsdk-apb-timer-test.c | ||
cmsdk-apb-watchdog-test.c | ||
cpu-plug-test.c | ||
cxl-test.c | ||
dbus-display-test.c | ||
dbus-vmstate-test.c | ||
device-introspect-test.c | ||
device-plug-test.c | ||
display-vga-test.c | ||
drive_del-test.c | ||
ds1338-test.c | ||
e1000-test.c | ||
e1000e-test.c | ||
eepro100-test.c | ||
emc141x-test.c | ||
endianness-test.c | ||
erst-test.c | ||
es1370-test.c | ||
fdc-test.c | ||
fuzz-e1000e-test.c | ||
fuzz-lsi53c895a-test.c | ||
fuzz-megasas-test.c | ||
fuzz-sb16-test.c | ||
fuzz-sdcard-test.c | ||
fuzz-virtio-scsi-test.c | ||
fuzz-xlnx-dp-test.c | ||
fw_cfg-test.c | ||
hd-geo-test.c | ||
hexloader-test.c | ||
i440fx-test.c | ||
i82801b11-test.c | ||
ide-test.c | ||
igb-test.c | ||
intel-hda-test.c | ||
ioh3420-test.c | ||
ipmi-bt-test.c | ||
ipmi-kcs-test.c | ||
ipoctal232-test.c | ||
isl_pmbus_vr-test.c | ||
ivshmem-test.c | ||
libqmp.c | ||
libqmp.h | ||
libqtest-single.h | ||
libqtest.c | ||
libqtest.h | ||
lpc-ich9-test.c | ||
lsm303dlhc-mag-test.c | ||
m48t59-test.c | ||
machine-none-test.c | ||
max34451-test.c | ||
megasas-test.c | ||
meson.build | ||
microbit-test.c | ||
migration-helpers.c | ||
migration-helpers.h | ||
migration-test.c | ||
modules-test.c | ||
ne2000-test.c | ||
netdev-socket.c | ||
npcm7xx_adc-test.c | ||
npcm7xx_emc-test.c | ||
npcm7xx_gpio-test.c | ||
npcm7xx_pwm-test.c | ||
npcm7xx_rng-test.c | ||
npcm7xx_sdhci-test.c | ||
npcm7xx_smbus-test.c | ||
npcm7xx_timer-test.c | ||
npcm7xx_watchdog_timer-test.c | ||
numa-test.c | ||
nvme-test.c | ||
pca9552-test.c | ||
pci-test.c | ||
pcnet-test.c | ||
pflash-cfi02-test.c | ||
pnv-xscom-test.c | ||
prom-env-test.c | ||
pvpanic-pci-test.c | ||
pvpanic-test.c | ||
pxe-test.c | ||
q35-test.c | ||
qmp-cmd-test.c | ||
qmp-test.c | ||
qom-test.c | ||
qos-test.c | ||
qtest_aspeed.c | ||
qtest_aspeed.h | ||
readconfig-test.c | ||
rtas-test.c | ||
rtc-test.c | ||
rtl8139-test.c | ||
sdhci-test.c | ||
sifive-e-aon-watchdog-test.c | ||
spapr-phb-test.c | ||
sse-timer-test.c | ||
tco-test.c | ||
test-arm-mptimer.c | ||
test-filter-mirror.c | ||
test-filter-redirector.c | ||
test-hmp.c | ||
test-netfilter.c | ||
test-x86-cpuid-compat.c | ||
tmp105-test.c | ||
tpm-crb-swtpm-test.c | ||
tpm-crb-test.c | ||
tpm-emu.c | ||
tpm-emu.h | ||
tpm-tests.c | ||
tpm-tests.h | ||
tpm-tis-device-swtpm-test.c | ||
tpm-tis-device-test.c | ||
tpm-tis-i2c-test.c | ||
tpm-tis-swtpm-test.c | ||
tpm-tis-test.c | ||
tpm-tis-util.c | ||
tpm-tis-util.h | ||
tpm-util.c | ||
tpm-util.h | ||
tulip-test.c | ||
ufs-test.c | ||
usb-hcd-ehci-test.c | ||
usb-hcd-ohci-test.c | ||
usb-hcd-uhci-test.c | ||
usb-hcd-xhci-test.c | ||
vhost-user-blk-test.c | ||
vhost-user-test.c | ||
virtio-9p-test.c | ||
virtio-blk-test.c | ||
virtio-ccw-test.c | ||
virtio-iommu-test.c | ||
virtio-net-failover.c | ||
virtio-net-test.c | ||
virtio-rng-test.c | ||
virtio-scsi-test.c | ||
virtio-serial-test.c | ||
virtio-test.c | ||
vmgenid-test.c | ||
vmxnet3-test.c | ||
vnc-display-test.c | ||
wdt_ib700-test.c | ||
xlnx-can-test.c | ||
xlnx-canfd-test.c |