Dear all, When I try to compile the sample code at the end of this report with "gcc -ansi -pedantic-errors -Wall essai.c -o essai", I get the error : /usr/include/bits/resource.h:161: erreur: comma at end of enumerator list If I remove the "-pedantic-errors", the compilation goes fine.
Here is the sample code : #include <stdio.h> #include <sys/time.h> #include <sys/resource.h> int main () { struct rlimit rlp; int CR; CR = getrlimit (RLIMIT_DATA, &rlp); if (CR == 0) { if (rlp.rlim_cur == RLIM_INFINITY) { fputs ("infinity\n", stdout); } else { fprintf (stdout, "%ld\n", rlp.rlim_cur); } } else { fputs ("unknown\n", stdout); fprintf (stderr, "getrlimit error, code=%d\n", CR); return 1; } return 0; } -- Summary: comma at end of enumerator list in bits/resource.h in pedantic mode Product: gcc Version: 4.3.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bpiguet at teaser dot fr http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40536