Bug 10691 - error: ‘spec’ undeclared (first use in this function)
Summary: error: ‘spec’ undeclared (first use in this function)
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-26 13:03 UTC by larissanadja
Modified: 2018-01-26 13:52 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description larissanadja 2018-01-26 13:03:16 UTC
Use of undeclared variable

The code bellow is compiled when the macro DEBUG is enabled. However, the variable 'spec' is undeclared. 

coreutils/od_bloaty.c:1376:7: error: ‘spec’ undeclared (first use in this function)
    i, spec[i].fmt_string, width_bytes[spec[i].size]);
Comment 1 Denys Vlasenko 2018-01-26 13:52:46 UTC
Fixed in git.