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

dangling-gsl warning in libwixhelper.cpp

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: