11590 unused variables in pcie
Review Request #2243 — Created Aug. 21, 2019 and submitted — Latest diff uploaded
Information | |
---|---|
ptribble | |
illumos-gate | |
11590 | |
Reviewers | |
general | |
Error found in sparc build: ../../common/io/pciex/pcie.c:3036: error: unused variable 'ev_attr_list' [-Wunused-variable] ../../common/io/pciex/pcie.c:3035: error: unused variable 'eid' [-Wunused-variable] ../../common/io/pciex/pcie.c:3034: error: unused variable 'se_val' [-Wunused-variable] ../../common/io/pciex/pcie.c:3033: error: unused variable 'se' [-Wunused-variable] ../../common/io/pciex/pcie.c:3032: error: unused variable 'cdip' [-Wunused-variable] Now, the pcie Makefile on intel gags the unused variable warning CERRWARN += -_gcc=-Wno-unused-variable But sparc doesn't, so we trip over this.
With the fix, clean build on both intel and sparc.