This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nptl/21804] New: Double semicolon in thread-shared-types.h


https://sourceware.org/bugzilla/show_bug.cgi?id=21804

            Bug ID: 21804
           Summary: Double semicolon in thread-shared-types.h
           Product: glibc
           Version: 2.26
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: nptl
          Assignee: unassigned at sourceware dot org
          Reporter: krejzi at email dot com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

Inside sysdeps/nptl/bits/thread-shared-types.h, there's a path where two
semicolons end up at the end of the line, resulting in compiler warnings such
as these:

/usr/include/bits/thread-shared-types.h:110: syntax error, unexpected ';' in ' 
;' at ';'
/usr/include/bits/thread-shared-types.h:112: syntax error, unexpected ';' in ' 
short __spins; short __elision;;' at ';'
/usr/include/bits/thread-shared-types.h:123: syntax error, unexpected ';' in '#
123 "/usr/include/bits/thread-shared-types.h" 3 4' at ';'

The issue is rather not important, but still annoying

When this #define:

https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/nptl/bits/thread-shared-types.h;h=1e45f2d8ce91a71da8f41c551e9618d6bb3c117f;hb=HEAD#l78

Gets expanded in:

https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/nptl/bits/thread-shared-types.h;h=1e45f2d8ce91a71da8f41c551e9618d6bb3c117f;hb=HEAD#l119

There ends up a path with two ;; at the end of union member define, resulting
in a warning. Solution: Remove second semicolon from the line first link points
to.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]