summaryrefslogtreecommitdiff
path: root/Bitmap.h
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-10-14 21:03:48 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-10-14 21:03:48 -0700
commitca7bf97b6e83b25e7142b321e5f2325b1e47c2d0 (patch)
treeff48f144231b3dbb2eaac0452363b7a684861787 /Bitmap.h
parent6e997556a17a1b4a9d6773602af770b9e9f3751e (diff)
Add const to char * in BWRequest typedef
Fixes many gcc --Wwrite-string warnings of the form: Bitmap.c: In function ‘BWTPaste’: Bitmap.c:1913:7: warning: passing argument 2 of ‘BWEngageRequest’ discards qualifiers from pointer target type Bitmap.h:190:16: note: expected ‘BWRequest’ but argument is of type ‘const char *’ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'Bitmap.h')
-rw-r--r--Bitmap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bitmap.h b/Bitmap.h
index 9d6d61e..5f706dc 100644
--- a/Bitmap.h
+++ b/Bitmap.h
@@ -177,7 +177,7 @@ from The Open Group.
/* bitmap exports */
typedef struct _BWRequestRec BWRequestRec;
-typedef char *BWRequest;
+typedef const char *BWRequest;
/* declare specific BitmapWidget class and instance datatypes */