Bug 10951 - error: 'execstat' undeclared (first use in this function)
Summary: error: 'execstat' 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-04-13 19:54 UTC by larissanadja
Modified: 2018-04-13 23:24 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-04-13 19:54:34 UTC
Use of undeclared variable.

When the OLDER_VERSION_OF_X macro is enabled, the code bellow is compiled. However, there is no declaration of 'execstat' until later in the code.

debianutils/start_stop_daemon.c:187:19: error: ‘execstat’ undeclared (first use in this function)
  if (st.st_dev == execstat.st_dev
       ^
Comment 1 Denys Vlasenko 2018-04-13 23:24:23 UTC
fixed in git