From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0) Description of problem: If we using Intel C/C++ compiler (icc), we got an error while building package 'ypserv-1.3.12' on ypxfrd.c: ypxfrd.c "ypxfrd.c", line 81: error: declaration is incompatible with "volatile int children" (declared at line 22 of "ypserv.h") int children = 0; ^ looking into sources we see that variable 'children' was previously declared as 'volatile int' in "ypserv.h" and redeclared just as 'int' in "ypxfrd.c". It is OK for gcc (gcc just ignores first 'volatile' this way), but normally C compiler should emit error or at least warning. I try to change second declaration from 'int' to 'volatile int' (file "ypxfrd.c", line 81) and package was built. With this I create and attach patch for eliminate this error in order to increase Red Hat Linux portability. Version-Release number of selected component (if applicable): 1.3.12 How reproducible: Always Steps to Reproduce: You are unable to reproduce the error now even if you have Intel C/C++ compiler, because Intel C/C++ compiler doesn't support __attribute__ ((unused)) on function parameters yet. Actual Results: Compile-time error. Expected Results: Succesfully built package. Additional info:
Created attachment 42092 [details] Patch for redeclaration of variable with various keywords
We don't support icc, please send the patch upstream instead. Upstream here is kukuk