summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-10-17 11:13:00 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-10-17 11:13:00 -0700
commite9cf08f26c897b3f2de40eba7c07d2e1e47a14c1 (patch)
tree1726e6b6b2cd6589090dc57712dee4a3b80ec3e6
parent3142544e8dd39aceea948d4d69810132240440b8 (diff)
R128RAMRec: constify name pointer
Clears 4 gcc warnings: r128_driver.c:178:36: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] { 4, 4, 3, 3, 1, 3, 1, 16, 12, "128-bit SDR SGRAM 1:1" }, ^~~~~~~~~~~~~~~~~~~~~~~ r128_driver.c:179:36: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] { 4, 8, 3, 3, 1, 3, 1, 17, 13, "64-bit SDR SGRAM 1:1" }, ^~~~~~~~~~~~~~~~~~~~~~ r128_driver.c:180:36: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] { 4, 4, 1, 2, 1, 2, 1, 16, 12, "64-bit SDR SGRAM 2:1" }, ^~~~~~~~~~~~~~~~~~~~~~ r128_driver.c:181:36: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] { 4, 4, 3, 3, 2, 3, 1, 16, 12, "64-bit DDR SGRAM" }, ^~~~~~~~~~~~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/r128.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/r128.h b/src/r128.h
index ebe95dc..6ab6beb 100644
--- a/src/r128.h
+++ b/src/r128.h
@@ -154,7 +154,7 @@ typedef struct { /* All values in XCLKS */
int Tr2w; /* Read to Write Delay */
int Rloop; /* Loop Latency */
int Rloop_fudge; /* Add to ML to get Rloop */
- char *name;
+ const char *name;
} R128RAMRec, *R128RAMPtr;
typedef struct {