Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8311104

dangling-gsl warning in libwixhelper.cpp

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 22
    • 20, 21, 22
    • tools
    • b09

    Description

      While experimenting with clang build on Windows, I noticed the following warning:

      jdk\open\src\jdk.jpackage\windows\native\libwixhelper\libwixhelper.cpp(75,36): warning: object backing the pointer will be destroyed at the end of the full-expression [-Wdangling-gsl]
          const LPCTSTR upgradeCodeStr = upgradeCode.toMsiString().c_str();
                                         ^~~~~~~~~~~~~~~~~~~~~~~~~

      The code was recently introduced in JDK-8283707.

      Attachments

        Issue Links

          Activity

            People

              asemenyuk Alexey Semenyuk
              djelinski Daniel Jelinski
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: