[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#145857: libc6-dev: three problems in <time.h>



> Package: libc6-dev
> Version: 2.2.5-4
> Severity: normal
> Tags: patch
> 
> This is an upstream bug, not a Debian bug.
> 
> I decided to track down a compiler warning. It turned out to be a
> buggy libc6 header file, and was NOT harmless. Here's a testcase to
> demonstrate the compiler warning. If I switch the order of the
> includes, everything is fine.
> 
> #include <time.h>
> #include <sched.h>
> 
> main () {
>   return 0;
> }
> 
> gcc -o testcase -ansi -Werror testcase.c
> cc1: warnings being treated as errors
> In file included from testcase.c:2:
> /usr/include/sched.h:63: warning: `struct timespec' declared inside parameter l\ist
> /usr/include/sched.h:63: warning: its scope is only this definition or declarat\ion, which is probably not what you want.
> make: *** [all] Error 1

This problem seems being fixed with another way.
Is this bug still alive in 2.3.1-14?

Regards,
-- gotom



Reply to: