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

bugs at busybox.net bugs at busybox.net
Tue Jan 23 20:38:40 UTC 2007


The following issue requires your FEEDBACK. 
====================================================================== 
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-23-2007 12:38 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? 

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
======================================================================




More information about the busybox-cvs mailing list