* clean up stuff (fix gcc warnings and added clean target for doc)

This commit is contained in:
Oliver Hahm 2013-04-02 02:02:58 +02:00
parent 2177b130d7
commit b6f21700ce
4 changed files with 8 additions and 8 deletions

View File

@ -33,8 +33,6 @@
#define ENABLE_DEBUG #define ENABLE_DEBUG
#include <debug.h> #include <debug.h>
volatile tcb_t *sched_threads[MAXTHREADS];
volatile tcb_t *active_thread;
volatile int lpm_prevent_sleep = 0; volatile int lpm_prevent_sleep = 0;
extern void main(void); extern void main(void);

View File

@ -76,7 +76,7 @@ int thread_wakeup(int pid) {
} }
int thread_measure_stack_usage(char *stack) { int thread_measure_stack_usage(char *stack) {
unsigned int* stackp = (unsigned int*)stack; unsigned int *stackp = (unsigned int*) (void*) stack;
/* assumption that the comparison fails before or after end of stack */ /* assumption that the comparison fails before or after end of stack */
while (*stackp == (unsigned int)stackp) while (*stackp == (unsigned int)stackp)
stackp++; stackp++;
@ -109,8 +109,8 @@ int thread_create(char *stack, int stacksize, char priority, int flags, void (*f
if (flags & CREATE_STACKTEST) { if (flags & CREATE_STACKTEST) {
/* assign each int of the stack the value of it's address */ /* assign each int of the stack the value of it's address */
unsigned int *stackmax = (unsigned int*) ((char*)stack + stacksize); unsigned int *stackmax = (unsigned int*) (void*) (stack + stacksize);
unsigned int* stackp = (unsigned int*)stack; unsigned int *stackp = (unsigned int*)(void*)stack;
while(stackp < stackmax) { while(stackp < stackmax) {
*stackp = (unsigned int)stackp; *stackp = (unsigned int)stackp;
stackp++; stackp++;

View File

@ -1,3 +1,5 @@
doc: doc:
doxygen riot.doxyfile doxygen riot.doxyfile
clean:
@rm -rf latex man html

View File

@ -50,7 +50,7 @@ void chardev_loop(ringbuffer_t *rb) {
msg_reply(&m, &m); msg_reply(&m, &m);
} }
else { else {
r = (struct posix_iop_t *)m.content.ptr; r = (struct posix_iop_t *)(void*)m.content.ptr;
} }
break; break;
case CLOSE: case CLOSE: