[PATCH:intel-gpu-tools 4/6] List out array values instead of using gcc range extension

Alan Coopersmith alan.coopersmith at oracle.com
Fri Jan 6 14:37:19 PST 2012


Required to compile with Solaris Studio cc compiler.

Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
 tools/intel_audio_dump.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/tools/intel_audio_dump.c b/tools/intel_audio_dump.c
index 95673fd..08e2c6a 100644
--- a/tools/intel_audio_dump.c
+++ b/tools/intel_audio_dump.c
@@ -129,7 +129,9 @@ static char *trans_to_port_sel[] = {
 	[2] = "Digital Port B",
 	[3] = "Digital Port B",
 	[4] = "Digital Port B",
-	[5 ... 7] = "reserved",
+	[5] = "reserved",
+	[6] = "reserved",
+	[7] = "reserved",
 };
 
 static char *transcoder_select[] = {
@@ -144,7 +146,10 @@ static char *dp_port_width[] = {
 	[1] = "x2 mode",
 	[2] = "reserved",
 	[3] = "x4 mode",
-	[4 ... 7] = "reserved",
+	[4] = "reserved",
+	[5] = "reserved",
+	[6] = "reserved",
+	[7] = "reserved",
 };
 
 static char *bits_per_sample[] = {
-- 
1.7.3.2



More information about the xorg-devel mailing list