Bug 7056 - pthread_cleanup_pop: suggest braces around empty body in 'do' statement
Summary: pthread_cleanup_pop: suggest braces around empty body in 'do' statement
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: nptl (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Ulrich Drepper
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-26 12:07 UTC by Caolán McNamara
Modified: 2014-07-01 21:11 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments
; -> {} (403 bytes, patch)
2008-11-26 12:08 UTC, Caolán McNamara
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Caolán McNamara 2008-11-26 12:07:44 UTC
Compiling code with gcc 4.3.2 with -werror that happens to use
"pthread_cleanup_pop" will spit out

error: suggest braces around empty body in 'do' statement

foiling my warning-free status.

Trivial patch attached
Comment 1 Caolán McNamara 2008-11-26 12:08:13 UTC
Created attachment 3077 [details]
; -> {}
Comment 2 Ulrich Drepper 2008-12-09 23:05:22 UTC
Changed upstream.