[riot-notifications] [RIOT] Warnings in native (#147)

Christian Mehlis notifications at github.com
Thu Aug 15 19:14:33 CEST 2013


```
make[3]: Entering directory `/home/c/git/RIOT-OS/RIOT/cpu/native'
hwtimer_cpu.c:158:37: warning: passing 'void ()' to parameter of type 'void *' converts between void
      pointer and function pointer [-Wpedantic]
    if (register_interrupt(SIGALRM, hwtimer_isr_timer) != 0) {
                                    ^~~~~~~~~~~~~~~~~
/home/c/git/RIOT-OS/projects/ccn-lite/../../RIOT/cpu/native/include/cpu.h:55:39: note: passing argument
      to parameter 'handler' here
int register_interrupt(int sig, void *handler);
                                      ^
hwtimer_cpu.c:213:5: warning: void function 'hwtimer_arch_set_absolute' should not return void expression
      [-Wpedantic]
    return(hwtimer_arch_set(value, timer));
    ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
irq_cpu.c:370:35: warning: assigning to 'void (*)(void)' from 'void *' converts between void pointer and
      function pointer [-Wpedantic]
    native_irq_handlers[sig].func = handler;
                                  ^ ~~~~~~~
irq_cpu.c:372:21: warning: assigning to 'void (*)(int, siginfo_t *, void *)' from 'void *' converts
      between void pointer and function pointer [-Wpedantic]
    sa.sa_sigaction = (void *) native_isr_entry;
                    ^ ~~~~~~~~~~~~~~~~~~~~~~~~~
irq_cpu.c:440:21: warning: assigning to 'void (*)(int, siginfo_t *, void *)' from 'void *' converts
      between void pointer and function pointer [-Wpedantic]
    sa.sa_sigaction = (void *) native_isr_entry;
                    ^ ~~~~~~~~~~~~~~~~~~~~~~~~~
3 warnings generated.
startup.c:30:54: warning: unused parameter 'argc' [-Wunused-parameter]
__attribute__((constructor)) static void startup(int argc, char **argv)
                                                     ^
startup.c:30:67: warning: unused parameter 'argv' [-Wunused-parameter]
__attribute__((constructor)) static void startup(int argc, char **argv)
                                                                  ^
2 warnings generated.
```

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/issues/147
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20130815/c87f9d2b/attachment.html>


More information about the notifications mailing list