[riot-devel] [RIOT] low hanging warnings fruits (#62)

Oleg notifications at github.com
Sun Jun 30 14:45:00 CEST 2013


`hwtimer_cpu.c:243:55: warning: unused parameter 'fcpu' [-Wunused-parameter]
 void hwtimer_arch_init(void (*handler)(int), uint32_t fcpu)`
fcpu is a scaling parameter for certain architectures (like ARM). Should explicitly ignore by other MCUs to get rid of the compiler warning.

`mutex.c:94:46: warning: unused parameter 'yield' [-Wunused-parameter]
 void mutex_unlock(struct mutex_t *mutex, int yield)`
Maybe deprecated.

`vtimer.c:80:24: warning: unused parameter 'ptr' [-Wunused-parameter]
 void vtimer_tick(void *ptr)

vtimer.c:112:28: warning: unused parameter 'ptr' [-Wunused-parameter]
 void vtimer_callback(void *ptr)`
ptr is necessary to implement hwtimer callback.

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/issues/62#issuecomment-20246607
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/devel/attachments/20130630/9444b657/attachment.html>


More information about the devel mailing list