Changeset 2cf5634 in mainline


Ignore:
Timestamp:
2005-12-22T11:09:29Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7ae4443
Parents:
096d11e5
Message:

Make the kernel compile with -Wall.

Files:
7 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r096d11e5 r2cf5634  
    4646
    4747DEFS = -D$(ARCH) -DARCH=\"$(ARCH)\" -DRELEASE=\"$(RELEASE)\" "-DNAME=\"$(NAME)\""
    48 CFLAGS = -fno-builtin -fomit-frame-pointer -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -nostdlib -nostdinc -Igeneric/include/
     48CFLAGS = -fno-builtin -fomit-frame-pointer -Wall -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -nostdlib -nostdinc -Igeneric/include/
    4949LFLAGS = -M
    5050AFLAGS =
  • arch/ia64/src/fmath.c

    r096d11e5 r2cf5634  
    4444double fmath_get_decimal_exponent(double num)
    4545{       //TODO:
    46         double value;
    47         // log10(2)*log2(x) => log10(x)
    48 /*      __asm__ __volatile__ ( \
    49         "fldlg2         #load log10(2)  \n\t"   \
    50         "fxch %%st(1)           \n\t" \
    51         "fyl2x          #count st(0)*log2(st(1))->st(1); pop st(0)      \n\t" \
    52         : "=t" (value) : "0"(num) );
    53 */      return value;
    54        
     46        return 0;       
    5547}
    5648
  • arch/ppc32/src/fmath.c

    r096d11e5 r2cf5634  
    4444double fmath_get_decimal_exponent(double num)
    4545{       //TODO:
    46         double value;
    47         // log10(2)*log2(x) => log10(x)
    48 /*      __asm__ __volatile__ ( \
    49         "fldlg2         #load log10(2)  \n\t"   \
    50         "fxch %%st(1)           \n\t" \
    51         "fyl2x          #count st(0)*log2(st(1))->st(1); pop st(0)      \n\t" \
    52         : "=t" (value) : "0"(num) );
    53 */      return value;
    54        
     46        return 0;       
    5547}
    5648
  • arch/ppc32/src/mm/memory_init.c

    r096d11e5 r2cf5634  
    4949                panic("Device /memory has no reg property\n");
    5050       
    51         size_t total;
     51        size_t total = 0;
    5252        int i;
    5353       
  • genarch/src/acpi/acpi.c

    r096d11e5 r2cf5634  
    4242
    4343struct acpi_signature_map signature_map[] = {
    44         { (__u8 *)"APIC", (struct acpi_sdt_header **) &acpi_madt, "Multiple APIC Description Table" }
     44        { (__u8 *)"APIC", (void *) &acpi_madt, "Multiple APIC Description Table" }
    4545};
    4646
  • generic/src/lib/func.c

    r096d11e5 r2cf5634  
    4646{
    4747#ifdef CONFIG_DEBUG
    48         bool rundebugger;
     48        bool rundebugger = false;
    4949
    5050//      TODO test_and_set not defined on all arches
  • generic/src/time/timeout.c

    r096d11e5 r2cf5634  
    9999void timeout_register(timeout_t *t, __u64 time, timeout_handler_t f, void *arg)
    100100{
    101         timeout_t *hlp;
     101        timeout_t *hlp = NULL;
    102102        link_t *l, *m;
    103103        ipl_t ipl;
Note: See TracChangeset for help on using the changeset viewer.