]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[build] Avoid spurious unused-but-set-variable warnings in gcc 4.6
authorMichael Brown <mcb30@ipxe.org>
Wed, 16 Mar 2011 17:15:25 +0000 (17:15 +0000)
committerMichael Brown <mcb30@ipxe.org>
Wed, 16 Mar 2011 19:31:44 +0000 (19:31 +0000)
commit511fd46976419bd2653fe7aef4d345437765bcbb
tree2c9c93027cd5873a383d71513f07d85098c01321
parentb8924c1aed512aa40cf28a43635df383880f771d
[build] Avoid spurious unused-but-set-variable warnings in gcc 4.6

The __table_entries() construction seems to trigger a false positive
warning in gcc 4.6 relating to variables which are set but never
used.  Add __attribute__((unused)) to inhibit this warning.

Reported-by: Ralph Giles <giles@thaumas.net>
Tested-by: Ralph Giles <giles@thaumas.net>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/include/ipxe/tables.h