Project

General

Profile

Bug #13591

Updated by Toomas Soome over 1 year ago

Build errors with gcc 10: 
 <pre> 
     ../../common/io/bnxe/bnxe_hw.c: In function 'BnxeRssDisable': 
     ../../common/io/bnxe/bnxe_hw.c:149:47: error: implicit conversion from 'enum <anonymous>' to 'lm_s 
     tatus_t' [-Werror=enum-conversion] 
       149 |       return (rc == LM_STATUS_SUCCESS) ? B_TRUE : B_FALSE; 
           |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ 
     cc1: all warnings being treated as errors 
     *** Error code 1 
     dmake: Warning: Command failed for target `obj64/bnxe_hw.o' 
     Current working directory /code/illumos-gate/usr/src/uts/intel/bnxe 
 </pre> 

 Testing done: build/install/boot. The return value from BnxeRssDisable() is never checked in current code.

Back