mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-27 21:22:26 +00:00
Miscellaneous compilation warning fixes
main.c:134: warning: no previous prototype for 'dix_main' rootlessScreen.c: In function 'RootlessMarkOverlappedWindows': rootlessScreen.c:434: warning: function declaration isn't a prototype backtrace.c:51: warning: format '%lx' expects type 'long unsigned int', but argument 5 has type 'int' backtrace.c:54: warning: format '%lx' expects type 'long unsigned int', but argument 5 has type 'int' set.c: In function 'RecordSetMemoryRequirements': set.c:413: warning: old-style function definition set.c: In function 'RecordCreateSet': set.c:425: warning: old-style function definition stub.c: In function ‘main’: stub.c:236: warning: ISO C90 forbids mixed declarations and code Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
This commit is contained in:
parent
955b9f23a3
commit
1b8f90aa8b
5 changed files with 9 additions and 13 deletions
|
|
@ -48,10 +48,10 @@ void xorg_backtrace(void)
|
|||
mod = (info.dli_fname && *info.dli_fname) ? info.dli_fname : "(vdso)";
|
||||
if (info.dli_saddr)
|
||||
ErrorF("%d: %s (%s+0x%lx) [%p]\n", i, mod,
|
||||
info.dli_sname, (char *) array[i] - (char *) info.dli_saddr, array[i]);
|
||||
info.dli_sname, (long unsigned int)((char *) array[i] - (char *) info.dli_saddr), array[i]);
|
||||
else
|
||||
ErrorF("%d: %s (%p+0x%lx) [%p]\n", i, mod,
|
||||
info.dli_fbase, (char *) array[i] - (char *) info.dli_fbase, array[i]);
|
||||
info.dli_fbase, (long unsigned int)((char *) array[i] - (char *) info.dli_fbase), array[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue