summaryrefslogtreecommitdiffstats
path: root/flash.h
diff options
context:
space:
mode:
authorMichael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>2010-01-12 15:36:24 +0000
committerMichael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>2010-01-12 15:36:24 +0000
commite7f3209487b8adb681dd720f9ae512c8ded26f6e (patch)
tree0de6c940c2288444810f571fabe0687c7e1ba40a /flash.h
parent9cce2f536581da4f278005a621ad95de1e21b284 (diff)
downloadast2050-flashrom-e7f3209487b8adb681dd720f9ae512c8ded26f6e.zip
ast2050-flashrom-e7f3209487b8adb681dd720f9ae512c8ded26f6e.tar.gz
Enable -Wshadow, clean code for that
This is not just for fun. We hit a real bug on BSD with the outl macros. The macro variable tmp collided with the tmp from outer scope. second revision, now also taking care of inb/inw/inl. While that shadowing did not introduce bugs (yet), of course it breaks the build on BSD when -Wshadow is enabled. Corresponding to flashrom svn r860. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Luc Verhaegen <libv@skynet.be>
Diffstat (limited to 'flash.h')
-rw-r--r--flash.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/flash.h b/flash.h
index 069b903..9a25c70 100644
--- a/flash.h
+++ b/flash.h
@@ -297,7 +297,6 @@ void internal_delay(int usecs);
extern uint32_t io_base_addr;
extern struct pci_access *pacc;
-extern struct pci_filter filter;
extern struct pci_dev *pcidev_dev;
struct pcidev_status {
uint16_t vendor_id;
OpenPOWER on IntegriCloud