Changeset 4339f09 in mainline for kernel


Ignore:
Timestamp:
2013-06-28T07:46:31Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e52b4b5
Parents:
3de67b4c (diff), dba3e2c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Mostly C style (obey clang suggestions)

Merge from lp:~vojtech-horky/helenos/misc.

Most changes driven by warnings/errors from clang, such as type
redefinitions (typedef struct …) or possibly uninitizalied
variables. Clang still emits some warnings but a lot less than
before :-). As a result, kernel can be built with clang/-Werror.

Also updated mkext2.py to work with Python 3 again.

Location:
kernel
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/Makefile

    r3de67b4c r4339f09  
    105105CLANG_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
    106106        -ffreestanding -fno-builtin -nostdlib -nostdinc \
    107         -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \
     107        -Wall -Werror -Wextra -Wno-unused-parameter -Wmissing-prototypes \
    108108        -Werror-implicit-function-declaration -Wwrite-strings \
    109109        -integrated-as \
  • kernel/generic/include/lib/memfnc.h

    r3de67b4c r4339f09  
    3737
    3838#include <typedefs.h>
     39#include <cc.h>
    3940
    4041extern void *memset(void *, int, size_t)
    41     __attribute__ ((optimize("-fno-tree-loop-distribute-patterns")));
     42    ATTRIBUTE_OPTIMIZE("-fno-tree-loop-distribute-patterns");
    4243extern void *memcpy(void *, const void *, size_t)
    43     __attribute__ ((optimize("-fno-tree-loop-distribute-patterns")));
     44    ATTRIBUTE_OPTIMIZE("-fno-tree-loop-distribute-patterns");
    4445
    4546#endif
  • kernel/test/print/print4.c

    r3de67b4c r4339f09  
    3636        uint8_t group;
    3737        for (group = 1; group < 4; group++) {
    38                 TPRINTF("%#" PRIx8 ": ", group << 5);
     38                TPRINTF("%#x: ", group << 5);
    3939               
    4040                uint8_t index;
     
    5252       
    5353        for (group = 4; group < 8; group++) {
    54                 TPRINTF("%#" PRIx8 ": ", group << 5);
     54                TPRINTF("%#x: ", group << 5);
    5555               
    5656                uint8_t index;
Note: See TracChangeset for help on using the changeset viewer.