j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Author: blueswirl Date: 2009-08-04 22:37:34 +0200 (Tue, 04 Aug 2009) New Revision: 535
Modified: trunk/openbios-devel/arch/unix/unix.c trunk/openbios-devel/libgcc/libgcc.h Log: Fix Unix target warnings from Sparse
Signed-off-by: Blue Swirl blauwirbel@gmail.com
Modified: trunk/openbios-devel/arch/unix/unix.c =================================================================== --- trunk/openbios-devel/arch/unix/unix.c 2009-08-04 20:37:32 UTC (rev 534) +++ trunk/openbios-devel/arch/unix/unix.c 2009-08-04 20:37:34 UTC (rev 535) @@ -52,13 +52,12 @@
/* local variables */
-ucell *latest, *state; -ucell *memory; +static ucell *memory;
-int diskemu; +static int diskemu;
static int segfault = 0; -int verbose = 0; +static int verbose = 0;
#ifdef CONFIG_PPC uint32_t isa_io_base; @@ -477,7 +476,7 @@ sa.sa_sigaction = segv_handler; sigemptyset(&sa.sa_mask); sa.sa_flags = SA_SIGINFO | SA_NODEFER; - sigaction(SIGSEGV, &sa, 0); + sigaction(SIGSEGV, &sa, NULL);
if (verbose) printk("done.\n"); @@ -492,7 +491,7 @@ sa.sa_sigaction = int_handler; sigemptyset(&sa.sa_mask); sa.sa_flags = SA_SIGINFO | SA_NODEFER; - sigaction(SIGINT, &sa, 0); + sigaction(SIGINT, &sa, NULL);
if (verbose) printk("done.\n");
Modified: trunk/openbios-devel/libgcc/libgcc.h =================================================================== --- trunk/openbios-devel/libgcc/libgcc.h 2009-08-04 20:37:32 UTC (rev 534) +++ trunk/openbios-devel/libgcc/libgcc.h 2009-08-04 20:37:34 UTC (rev 535) @@ -27,7 +27,7 @@ // Must be implemented outside: void __divide_error(void);
-#ifdef __arch64__ +#if defined(__arch64__) || defined(__LP64__) typedef int TItype __attribute__ ((mode (TI)));
__uint128_t __udivmodti4(__uint128_t num, __uint128_t den, __uint128_t *rem);