diff options
author | Keith Packard <keithp@keithp.com> | 2013-11-15 21:46:15 +0900 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-01-29 15:20:03 -0800 |
commit | a96cc1f032a059da89319ceccb6659c8edd446fb (patch) | |
tree | 8e4aa6f868bc037f4fc036fb41f7f7844315c3f2 /src/fc/fserve.h | |
parent | 2a3429413df27224ceeddd22500ce43b5431d698 (diff) |
Warning fixes.
Many const char issues.
One extra 'i' declared in ScaleFont; we can just use the same 'i' as
exists at the top level scope.
Also ignore bad-function-cast in ftfuncs.c and bitscale.c because
we're casting the return value from floor or ceil from double to
int. As floor and ceil are kinda designed to generate integer results,
it's pretty clear that we're doing what we want and that the compiler
is generating noise. I'm not sure why bad-function-cast is ever a good
warning to turn on, but I'll leave that for another day.
Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
Diffstat (limited to 'src/fc/fserve.h')
-rw-r--r-- | src/fc/fserve.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fc/fserve.h b/src/fc/fserve.h index 5999861..502e201 100644 --- a/src/fc/fserve.h +++ b/src/fc/fserve.h @@ -72,7 +72,7 @@ typedef struct _fs_blocked_extents *FSBlockedExtentPtr; extern void _fs_convert_char_info ( fsXCharInfo *src, xCharInfo *dst ); extern void _fs_free_props (FontInfoPtr pfi); extern FontPtr fs_create_font (FontPathElementPtr fpe, - char *name, + const char *name, int namelen, fsBitmapFormat format, fsBitmapFormatMask fmask); |