nginx-1.2.3
Maxim Dounin
mdounin at mdounin.ru
Wed Aug 8 16:19:30 UTC 2012
Hello!
On Wed, Aug 08, 2012 at 12:41:36PM +0800, 姚伟斌 wrote:
> Hi, A compile warning in my Ubuntu server:
>
> clang -c -pipe -O -Wall -Wextra -Wpointer-arith -Wno-unused-parameter
> -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I
> objs \
> -o objs/src/os/unix/ngx_setaffinity.o \
>
> src/os/unix/ngx_setaffinity.c
> src/os/unix/ngx_setaffinity.c:57:13: warning: expression result unused
> [-Wunused-value]
> CPU_SET(i, &mask);
> ^~~~~~~~~~~~~~~~~
> In file included
> from src/os/unix/ngx_setaffinity.c:7:
> In file included from src/core/ngx_config.h:26:
> In file included
> from src/os/unix/ngx_linux_config.h:41:
> /usr/include/sched.h:72:33: note: instantiated from:
> # define
> CPU_SET(cpu, cpusetp) __CPU_SET_S (cpu, sizeof (cpu_set_t), cpusetp)
> ^
> In file included
> from src/os/unix/ngx_setaffinity.c:7:
> In file included from src/core/ngx_config.h:26:
> In file included
> from src/os/unix/ngx_linux_config.h:41:
> In file included from /usr/include/sched.h:35:
>
> /usr/include/bits/sched.h:145:9: note: instantiated from:
> : 0; }))
> ^
> 1 diagnostic generated.
Looks like valid warning for a glibc code, you may want to report
it to glibc folks. Nothing here we could do (and actually it's
one of the reasons we've not enabled -Werror for Clang yet).
Maxim Dounin
More information about the nginx
mailing list