Uploaded image for project: 'SoftHSM'
  1. SoftHSM
  2. SOFTHSM-109

Unused parameter and variable warnings

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.0b2
    • Fix Version/s: 2.0.0b3
    • Component/s: Build
    • Labels:
      None

      Description

      There are a number of build warnings. Probably because of the preprocessor directives.

      ../../../../src/lib/crypto/OSSLAES.cpp:40:6: warning: unused parameter 'key' [-Wunused-parameter]
       bool OSSLAES::wrapKey(const SymmetricKey* key, const SymWrap::Type mode, const ByteString& in, ByteString& out)
            ^
      ../../../../src/lib/crypto/OSSLAES.cpp:40:6: warning: unused parameter 'mode' [-Wunused-parameter]
      ../../../../src/lib/crypto/OSSLAES.cpp:40:6: warning: unused parameter 'in' [-Wunused-parameter]
      ../../../../src/lib/crypto/OSSLAES.cpp:40:6: warning: unused parameter 'out' [-Wunused-parameter]
      ../../../../src/lib/crypto/OSSLAES.cpp:53:6: warning: unused parameter 'key' [-Wunused-parameter]
       bool OSSLAES::unwrapKey(const SymmetricKey* key, const SymWrap::Type mode, const ByteString& in, ByteString& out)
            ^
      ../../../../src/lib/crypto/OSSLAES.cpp:53:6: warning: unused parameter 'mode' [-Wunused-parameter]
      ../../../../src/lib/crypto/OSSLAES.cpp:53:6: warning: unused parameter 'in' [-Wunused-parameter]
      ../../../../src/lib/crypto/OSSLAES.cpp:53:6: warning: unused parameter 'out' [-Wunused-parameter]
      ../../../src/lib/SoftHSM.cpp: In member function 'CK_RV SoftHSM::WrapKeySym(CK_MECHANISM_PTR, Token*, OSObject*, ByteString&, ByteString&)':
      ../../../src/lib/SoftHSM.cpp:5089:11: warning: unused variable 'wrappedlen' [-Wunused-variable]
        CK_ULONG wrappedlen = keydata.size();
                 ^
      

        Attachments

          Activity

            People

            Assignee:
            rickard Rickard Bellgrim
            Reporter:
            rickard Rickard Bellgrim
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: