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

Fails to build with GCC 6

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • C++ 1.7.3
    • None
    • C++
    • 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

              scantor Scott Cantor
              wferi Ferenc W√°gner
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: