Uploaded image for project: 'Santuario'
  1. Santuario
  2. SANTUARIO-448

Fails to build with GCC 6

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: C++ 1.7.3
    • Fix Version/s: None
    • Component/s: C++
    • Labels:
      None

      Description

      Compilation dies with

      tools/checksig/InteropResolver.cpp: In member function 'virtual XSECCryptoKey* InteropResolver::resolveKey(DSIGKeyInfoList*)':
      tools/checksig/InteropResolver.cpp:648:9: error: cannot convert 'bool' to 'XSECCryptoKey*' in return
        return false;
               ^~~~~
      

      From https://gcc.gnu.org/gcc-6/porting_to.html:

      Cannot convert 'bool' to 'T*'

      The current C++ standard only allows integer literals to be used as null pointer constants, so other constants such as false and (1 - 1) cannot be used where a null pointer is desired. Code that fails to compile with this error should be changed to use nullptr, or 0, or NULL.

      Replacing the above false with NULL is enough to get a successful build with GCC 6.1.1.

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              scantor Scott Cantor
              Reporter:
              wferi Ferenc W√°gner

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment