Bug 10666 - coreutils/od_bloaty.c:1374:7: error: ‘i’ undeclared (first use in this function)
Summary: coreutils/od_bloaty.c:1374:7: error: ‘i’ 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-22 14:09 UTC by larissanadja
Modified: 2018-01-23 13:49 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-22 14:09:59 UTC
Use of undeclared variable.

When the DEBUG macro is enabled, the code bellow is compiled. However, there is no declaration of 'i'.

coreutils/od_bloaty.c:1374:7: error: ‘i’ undeclared (first use in this function)
  for (i = 0; i < G.n_specs; i++) {
       ^
Comment 1 Denys Vlasenko 2018-01-23 13:49:40 UTC
Fixed in git, thanks