georgemarselis / openlava-macosx

Automatically exported from code.google.com/p/openlava-macosx
GNU General Public License v2.0
1 stars 0 forks source link

lshosts1 error: variable 'rc' set but not used [-Werror=unused-but-set-variable] #238

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Problem:

lshosts1.c: In function 'main':
lshosts1.c:97:7: error: variable 'rc' set but not used 
[-Werror=unused-but-set-variable]
   int rc = 0;
       ^
compilation terminated due to -Wfatal-errors.
cc1: all warnings being treated as errors

Problem description:

int rc is declared and initialized as such

  int rc = 0;

  rc = _i18n_init (I18N_CAT_MIN); 

... and then never used again. 

The variable seems to be part of the i18n effort of the project

compilation terminated due to -Wfatal-errors.

How to fix it:

source temp commented out, until further investigation in i18n phase.

Original issue reported on code.google.com by geo...@marsel.is on 12 Aug 2014 at 1:41