Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-94305

Build fails on unused variable error

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • No
    • Low
    • 2
    • rhel-security-crypto-diamonds
    • ssg_security
    • 19
    • 26
    • 0.1
    • QE ack, Dev ack
    • False
    • False
    • Hide

      None

      Show
      None
    • No
    • Crypto25Q2, Crypto25-08
    • Unspecified Release Note Type - Unknown
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      error:

      /home/lleonard/rpmbuild/BUILD/edk2-20250221-build/edk2-fbe0805b2091/CryptoPkg/Library/OpensslLib/openssl/crypto/ec/ec_lib.c: In function ‘EC_GROUP_new_from_params’:
      /home/lleonard/rpmbuild/BUILD/edk2-20250221-build/edk2-fbe0805b2091/CryptoPkg/Library/OpensslLib/openssl/crypto/ec/ec_lib.c:1557:9: error: unused variable ‘encoding_flag’ [-Werror=unused-variable]
       1557 |     int encoding_flag = -1;
            |         ^~~~~~~~~~~~~
      cc1: all warnings being treated as errors
      

      I checked the code and IUCC all the places where that variable is used are not being compiled.

      Removing the declaration fixes the issue

              dbelyavs@redhat.com Dmitry Belyavskiy
              rh-ee-lleonard Luigi Leonardi
              Dmitry Belyavskiy Dmitry Belyavskiy
              Georgios Stavros Pantelakis Georgios Stavros Pantelakis
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: