[PATCH xserver] Add identifier to union to avoid warning.

Trevor Woerner twoerner at gmail.com
Wed Sep 8 13:58:10 PDT 2010


From: Trevor Woerner <twoerner at gmail.com>

Signed-off-by: Trevor Woerner <twoerner at gmail.com>
---

gcc version 4.5.0 20100604 [gcc-4_5-branch revision 160292] (SUSE Linux)

Before this fix my build log was filled with the following:
    $prefix/include/xorg/edid.h:623:4: warning: declaration does not declare anything

Deleting the entire directory tree at $prefix then performing a full build
with this change does not produce any errors.

 hw/xfree86/ddc/edid.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hw/xfree86/ddc/edid.h b/hw/xfree86/ddc/edid.h
index cc4bd02..d386cf6 100644
--- a/hw/xfree86/ddc/edid.h
+++ b/hw/xfree86/ddc/edid.h
@@ -620,7 +620,7 @@ struct cea_vendor_block {
   union {
       struct cea_vendor_block_hdmi hdmi;
       /* any other vendor blocks we know about */
-  };
+  }u;
 };
 
 struct cea_speaker_block
-- 
1.7.1



More information about the xorg-devel mailing list