eclair: fix compiler warnings
This commit is contained in:
@ -289,12 +289,9 @@ static int setup_threads(void) {
|
|||||||
uintptr_t v;
|
uintptr_t v;
|
||||||
uintptr_t head;
|
uintptr_t head;
|
||||||
uintptr_t entry;
|
uintptr_t entry;
|
||||||
uintptr_t idle;
|
|
||||||
|
|
||||||
v = clv + (cpu * K(CPU_LOCAL_VAR_SIZE));
|
v = clv + (cpu * K(CPU_LOCAL_VAR_SIZE));
|
||||||
|
|
||||||
idle = v+K(IDLE_THREAD_OFFSET);
|
|
||||||
|
|
||||||
error = read_64(v+K(CURRENT_OFFSET), ¤t);
|
error = read_64(v+K(CURRENT_OFFSET), ¤t);
|
||||||
if (error) {
|
if (error) {
|
||||||
perror("current");
|
perror("current");
|
||||||
@ -364,7 +361,7 @@ static int setup_threads(void) {
|
|||||||
|
|
||||||
if (!curr_thread)
|
if (!curr_thread)
|
||||||
curr_thread = ti;
|
curr_thread = ti;
|
||||||
next_thread:
|
|
||||||
error = read_64(entry, &entry);
|
error = read_64(entry, &entry);
|
||||||
if (error) {
|
if (error) {
|
||||||
perror("process2");
|
perror("process2");
|
||||||
|
|||||||
Reference in New Issue
Block a user