mirror of
https://github.com/0intro/libtask
synced 2024-11-24 06:39:45 +03:00
fix extra warnings
channel.c:116:12: warning: comparison between signed and unsigned integer expressions fd.c:19:14: warning: unused parameter ‘v’ task.c:316:14: warning: unused parameter ‘s’ task.c:346:21: warning: unused parameter ‘v’
This commit is contained in:
parent
0609977c6e
commit
eed781b1a9
2
Makefile
2
Makefile
@ -19,7 +19,7 @@ $(OFILES): taskimpl.h task.h 386-ucontext.h power-ucontext.h
|
||||
|
||||
AS=gcc -c
|
||||
CC=gcc
|
||||
CFLAGS=-Wall -c -I. -ggdb
|
||||
CFLAGS=-Wall -Wextra -c -I. -ggdb
|
||||
|
||||
%.o: %.S
|
||||
$(AS) $*.S
|
||||
|
@ -104,7 +104,7 @@ altqueue(Alt *a)
|
||||
static void
|
||||
altdequeue(Alt *a)
|
||||
{
|
||||
int i;
|
||||
unsigned int i;
|
||||
Altarray *ar;
|
||||
|
||||
ar = chanarray(a->c, a->op);
|
||||
|
3
fd.c
3
fd.c
@ -21,7 +21,8 @@ fdtask(void *v)
|
||||
int i, ms;
|
||||
Task *t;
|
||||
uvlong now;
|
||||
|
||||
|
||||
USED(v);
|
||||
tasksystem();
|
||||
taskname("fdtask");
|
||||
for(;;){
|
||||
|
2
task.c
2
task.c
@ -319,6 +319,7 @@ taskinfo(int s)
|
||||
Task *t;
|
||||
char *extra;
|
||||
|
||||
USED(s);
|
||||
fprint(2, "task list:\n");
|
||||
for(i=0; i<nalltask; i++){
|
||||
t = alltask[i];
|
||||
@ -345,6 +346,7 @@ int mainstacksize;
|
||||
static void
|
||||
taskmainstart(void *v)
|
||||
{
|
||||
USED(v);
|
||||
taskname("taskmain");
|
||||
taskmain(taskargc, taskargv);
|
||||
}
|
||||
|
@ -9,6 +9,8 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#define USED(x) if(x){}else{}
|
||||
|
||||
#define USE_UCONTEXT 1
|
||||
|
||||
#if defined(__OpenBSD__) || defined(__mips__)
|
||||
|
Loading…
Reference in New Issue
Block a user