Bug 1225 - unused local variables in regexec.c if _LIBC is not defined
Summary: unused local variables in regexec.c if _LIBC is not defined
Status: RESOLVED INVALID
Alias: None
Product: glibc
Classification: Unclassified
Component: regex (show other bugs)
Version: 2.3.5
: P2 minor
Target Milestone: ---
Assignee: GOTO Masanori
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-21 00:40 UTC by Paul Eggert
Modified: 2018-04-19 14:53 UTC (History)
2 users (show)

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


Attachments
avoid uninitialized-variable warnings (459 bytes, patch)
2005-08-21 00:40 UTC, Paul Eggert
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Eggert 2005-08-21 00:40:20 UTC
The attached patch is taken from coreutils, which uses it to avoid
unused-local-variable warnings when compiling regexec.c.
Comment 1 Paul Eggert 2005-08-21 00:40:47 UTC
Created attachment 603 [details]
avoid uninitialized-variable warnings
Comment 2 Ulrich Drepper 2005-09-06 18:41:32 UTC
This isn't necessarily correct.  If, as suggested in another bug, the
__libc_loc_* definitions are moved into a separate file where they are defined
by the project using the code, then there can be locking operations defined. 
The correct way to do this is define a macro which indicates locking is used.
Comment 3 Ulrich Drepper 2006-04-25 18:18:33 UTC
No reply in 6+ months.  Closing.