diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-01-17 12:55:33 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-01-17 12:55:33 +0000 |
commit | 35ea7b2dd5904d5d8f7c355368c82bb12f1b83a0 (patch) | |
tree | 49d04019d7b89e3d62c541670ff49af05c85f1b1 /src/intel_device.c | |
parent | f23ab963c4f4ada2051588dfc85264aa2798dbf7 (diff) |
intel: Silence a compiler warning (-Wshadow)
intel_device.c: In function 'intel_entity_get_devid':
intel_device.c:82:32: warning: declaration of 'index' shadows a global declaration [-Wshadow]
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/intel_device.c')
-rw-r--r-- | src/intel_device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel_device.c b/src/intel_device.c index 4d08a6eb..8fd78827 100644 --- a/src/intel_device.c +++ b/src/intel_device.c @@ -79,11 +79,11 @@ static int __intel_get_device_id(int fd) return devid; } -int intel_entity_get_devid(int index) +int intel_entity_get_devid(int idx) { struct intel_device *dev; - dev = xf86GetEntityPrivate(index, intel_device_key)->ptr; + dev = xf86GetEntityPrivate(idx, intel_device_key)->ptr; if (dev == NULL) return 0; |