[BusyBox 0001171]: warning: empty body in an if-statement

bugs at busybox.net bugs at busybox.net
Wed Jan 24 12:35:18 UTC 2007


A NOTE has been added to this issue. 
====================================================================== 
http://busybox.net/bugs/view.php?id=1171 
====================================================================== 
Reported By:                andreasz
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   1171
Category:                   Kernel Module Support
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
====================================================================== 
Date Submitted:             01-23-2007 05:04 PST
Last Modified:              01-24-2007 04:35 PST
====================================================================== 
Summary:                    warning: empty body in an if-statement
Description: 
i tryed to precompile the Busybox for Mipsel. The precompiled abourt at :

  CC      applets/applets.o
cc1: warnings being treated as errors
applets/applets.c: In function 'run_applet_by_name':
applets/applets.c:474: warning: empty body in an if-statement
make[2]: *** [applets/applets.o] Fehler 1
make[1]: *** [applets] Fehler 2
make[1]: Leaving directory
`/home/bofh/ds-0.2.9_26-13/source/ref-8mb_26/busybox-1.4.0'
make: *** [source/ref-8mb_26/busybox-1.4.0/busybox] Fehler 2


====================================================================== 

---------------------------------------------------------------------- 
 andreasz - 01-23-07 05:05  
---------------------------------------------------------------------- 
sorry wrong Category, its my first Report 

---------------------------------------------------------------------- 
 vda - 01-23-07 12:38  
---------------------------------------------------------------------- 
Find this place:

#else
#define parse_config_file()
#endif /* CONFIG_FEATURE_SUID_CONFIG */

and add "((void)0)":

#else
#define parse_config_file() ((void)0)
#endif /* CONFIG_FEATURE_SUID_CONFIG */

Does this work? 

---------------------------------------------------------------------- 
 andreasz - 01-24-07 04:35  
---------------------------------------------------------------------- 
Hello, ist works thank you but now a new error or must i report it as a new
?:

 CC      archival/tar.o
cc1: warnings being treated as errors
archival/tar.c: In function 'writeFileToTarball':
archival/tar.c:379: warning: unused parameter 'depth'
make[2]: *** [archival/tar.o] Fehler 1
make[1]: *** [archival] Fehler 2
make[1]: Leaving directory
`/home/bofh/ds-0.2.9_26-13/source/ref-8mb_26/busybox-1.4.0'
make: *** [source/ref-8mb_26/busybox-1.4.0/busybox] Fehler 2 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
01-23-07 05:04  andreasz       New Issue                                    
01-23-07 05:04  andreasz       Status                   new => assigned     
01-23-07 05:04  andreasz       Assigned To               => BusyBox         
01-23-07 05:05  andreasz       Note Added: 0002036                          
01-23-07 12:38  vda            Note Added: 0002037                          
01-23-07 12:38  vda            Status                   assigned => feedback
01-24-07 04:35  andreasz       Note Added: 0002039                          
======================================================================




More information about the busybox-cvs mailing list