intel / FSP

Intel(R) Firmware Support Package (FSP)
Other
295 stars 127 forks source link

error: ‘FspPcdListLibNull’ defined but not used #89

Closed rockleesan closed 8 months ago

rockleesan commented 1 year ago

src/FSP/WhitleyFspBinPkg/Library/FspPcdListLibNull/FspPcdListLibNull.c:13:1: error: ‘FspPcdListLibNull’ defined but not used [-Werror=unused-function] 13 | FspPcdListLibNull ( | ^~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors

Trying to compile WilsonCityRvp, got an error of unused function, fixed by:


index a4d89f8..d1b8699 100644
--- a/WhitleyFspBinPkg/Library/FspPcdListLibNull/FspPcdListLibNull.c
+++ b/WhitleyFspBinPkg/Library/FspPcdListLibNull/FspPcdListLibNull.c
@@ -8,11 +8,11 @@
   SPDX-License-Identifier: BSD-2-Clause-Patent
 **/

-STATIC
+/*STATIC
 VOID
 FspPcdListLibNull (
   VOID
   )
 {

-}
+}*/```
nate-desimone commented 8 months ago

Fixed in 8beacd5.