mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Avoid compiler warnings
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14866 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
77dde4b8bc
commit
df3ff193ea
3 changed files with 13 additions and 6 deletions
|
@ -1,3 +1,10 @@
|
|||
2002-10-29 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Headers/gnustep/gui/GSMethodTable.h:
|
||||
* Headers/gnustep/gui/PSOperators.h:
|
||||
Add const qualifier to PSPrintf and PSWriteData argument types to
|
||||
match all other declatrations.
|
||||
|
||||
2002-10-28 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Source/NSTextView.m (-drawRect:): Don't draw insertion point
|
||||
|
|
|
@ -272,9 +272,9 @@ typedef struct {
|
|||
/* Postscript Client functions */
|
||||
/* ----------------------------------------------------------------------- */
|
||||
void (*DPSPrintf__)
|
||||
(NSGraphicsContext*, SEL, char *, va_list);
|
||||
(NSGraphicsContext*, SEL, const char *, va_list);
|
||||
void (*DPSWriteData__)
|
||||
(NSGraphicsContext*, SEL, char *, unsigned int);
|
||||
(NSGraphicsContext*, SEL, const char *, unsigned int);
|
||||
|
||||
/* ----------------------------------------------------------------------- */
|
||||
/* NSGraphics Ops */
|
||||
|
|
|
@ -342,11 +342,11 @@ __attribute__((unused));
|
|||
/* Postscript Client functions */
|
||||
/* ----------------------------------------------------------------------- */
|
||||
static inline void
|
||||
PSPrintf(char * fmt, va_list args)
|
||||
PSPrintf(const char * fmt, va_list args)
|
||||
__attribute__((unused));
|
||||
|
||||
static inline void
|
||||
PSWriteData(char * buf, unsigned int count)
|
||||
PSWriteData(const char * buf, unsigned int count)
|
||||
__attribute__((unused));
|
||||
|
||||
|
||||
|
@ -796,13 +796,13 @@ PSdissolve(float x, float y, float w, float h, int gstateNum, float dx, float dy
|
|||
/* Postscript Client functions */
|
||||
/* ----------------------------------------------------------------------- */
|
||||
static inline void
|
||||
PSPrintf(char * fmt, va_list args)
|
||||
PSPrintf(const char * fmt, va_list args)
|
||||
{
|
||||
DPSPrintf(DEFCTXT, fmt, args);
|
||||
}
|
||||
|
||||
static inline void
|
||||
PSWriteData(char * buf, unsigned int count)
|
||||
PSWriteData(const char * buf, unsigned int count)
|
||||
{
|
||||
DPSWriteData(DEFCTXT, buf, count);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue