From 1b8f90aa8b1017c74b254db2f398131b857323d4 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Tue, 8 Dec 2009 15:50:28 -0800 Subject: Miscellaneous compilation warning fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- miext/rootless/rootlessScreen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'miext') diff --git a/miext/rootless/rootlessScreen.c b/miext/rootless/rootlessScreen.c index c73d5170b..7a799d98c 100644 --- a/miext/rootless/rootlessScreen.c +++ b/miext/rootless/rootlessScreen.c @@ -431,7 +431,7 @@ RootlessMarkOverlappedWindows(WindowPtr pWin, WindowPtr pFirst, register WindowPtr pChild; Bool anyMarked = FALSE; - void (* MarkWindow)() = pScreen->MarkWindow; + MarkWindowProcPtr MarkWindow = pScreen->MarkWindow; RL_DEBUG_MSG("is top level! "); /* single layered systems are easy */ -- cgit v1.2.3