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 inJDK-8283707.
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
- relates to
-
JDK-8283707 Support <major.minor.update.build> version format on Windows
- Resolved
-
JDK-8288293 Windows/gcc Port
- Draft