]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[legacy] Fix building with GCC 6
authorMichael Brown <mcb30@ipxe.org>
Wed, 4 May 2016 14:58:14 +0000 (15:58 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 4 May 2016 15:01:33 +0000 (16:01 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/include/nic.h

index 4c91f57a6f2ea65b30b4da197f32c8e33de6d713..8b06e88f4837457252f4fb28ca83d5d20bec100d 100644 (file)
@@ -209,7 +209,8 @@ static inline void * legacy_isa_get_drvdata ( void *hwdev ) {
 
 #undef DRIVER
 #define DRIVER(_name_text,_unused2,_unused3,_name,_probe,_disable)       \
-       static const char _name ## _text[] = _name_text;                  \
+       static __attribute__ (( unused )) const char                      \
+       _name ## _text[] = _name_text;                                    \
        static inline int                                                 \
        _name ## _probe ( struct nic *nic, void *hwdev ) {                \
                return _probe ( nic, hwdev );                             \