diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-09-28 18:53:17 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-09-28 18:53:17 -0700 |
commit | 5340bddccdd21fd34aae996ac3347ddb71f00de6 (patch) | |
tree | 5353a06970ae9e27420f3f4877e442e3fe791003 /x11perf.h | |
parent | 84bfc56a89929999db92925c078d9e2f801b1689 (diff) |
Add const attributes to fix gcc -Wwrite-strings warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'x11perf.h')
-rw-r--r-- | x11perf.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -74,7 +74,7 @@ typedef struct _Parms { /* Optional fields. (Wouldn't object-oriented programming be nice ?) */ int special; /* Usually size of objects to paint */ - char *font, *bfont; + const char *font, *bfont; int fillStyle; /* Solid, transparent stipple, opaque stipple, tile */ } ParmRec, *Parms; @@ -115,9 +115,9 @@ typedef enum { } TestType; typedef struct _Test { - char *option; /* Name to use in prompt line */ - char *label; /* Fuller description of test */ - char *label14; /* Labels that are different in Version 1.4 */ + const char *option; /* Name to use in prompt line */ + const char *label; /* Fuller description of test */ + const char *label14; /* Labels that are different in Version 1.4 */ InitProc init; /* Initialization procedure */ Proc proc; /* Timed benchmark procedure */ CleanupProc passCleanup;/* Cleanup between repetitions of same test */ |