summaryrefslogtreecommitdiff
path: root/src/builtins/file.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-11-15 21:46:15 +0900
committerKeith Packard <keithp@keithp.com>2014-01-29 15:20:03 -0800
commita96cc1f032a059da89319ceccb6659c8edd446fb (patch)
tree8e4aa6f868bc037f4fc036fb41f7f7844315c3f2 /src/builtins/file.c
parent2a3429413df27224ceeddd22500ce43b5431d698 (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/builtins/file.c')
-rw-r--r--src/builtins/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/builtins/file.c b/src/builtins/file.c
index 3f657d9..93527c1 100644
--- a/src/builtins/file.c
+++ b/src/builtins/file.c
@@ -90,7 +90,7 @@ BuiltinClose (BufFilePtr f, int unused)
FontFilePtr
-BuiltinFileOpen (char *name)
+BuiltinFileOpen (const char *name)
{
int i;
BuiltinIOPtr io;