Fix many GCC compile warnings and some errors#1663
Fix many GCC compile warnings and some errors#1663marcows wants to merge 15 commits intonotepad-plus-plus:masterfrom marcows:gcc-fixes
Conversation
??? |
Rewording: |
|
I have just pushed the branch with a new commit, which adds a minimal FileBrowser stub for MinGW. Now it can be built and is running successfully again because the unsupported ATL is not used anymore. There were no changes to the original source files needed for this. @mzbab88 Try out this reworked branch. |
Error message e.g.: extra qualification 'ScintillaEditView::' on member 'langNames' [-fpermissive]
…HAR*
Error messages:
invalid conversion from 'const TCHAR* {aka const wchar_t*}' to 'TCHAR* {aka wchar_t*}' [-fpermissive]
invalid conversion from 'const wchar_t*' to 'TCHAR* {aka wchar_t*}' [-fpermissive]
…to 'char*'
Warning messages:
deprecated conversion from string constant to 'char*' [-Wwrite-strings]
deprecated conversion from string constant to 'wchar_t*' [-Wwrite-strings]
deprecated conversion from string constant to 'TCHAR* {aka wchar_t*}' [-Wwrite-strings]
Still warnings when using -std=c++11 or -std=c++14:
ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
ISO C++ forbids converting a string constant to 'wchar_t*' [-Wwrite-strings]
ISO C++ forbids converting a string constant to 'TCHAR* {aka wchar_t*}' [-Wwrite-strings]
Warning message: inline function 'void ScintillaEditView::makeStyle(LangType, const TCHAR**)' used but never defined
…Wconversion-null]
Warning messages:
converting to non-pointer type 'int' from NULL [-Wconversion-null]
converting to non-pointer type 'uptr_t {aka long unsigned int}' from NULL [-Wconversion-null]
converting to non-pointer type 'Document {aka long int}' from NULL [-Wconversion-null]
This feature cannot be built because ATL is not supported. Building and running successfully now without the file browser feature.
could not convert 'false' from 'bool' to 'generic_string {aka std::__cxx11::basic_string<wchar_t>}'
With GCC 5.3.0 it was a warning:
converting 'false' to pointer type for argument 1 of 'std::[..]'
…W stubs Necessary since addition of "Log Monitoring (tail -f)" feature.
|
Closing since merge conflict but I will take care of that using the current patch. |
|
I have rebased my branch, conflicts resolved: |
|
Rebased after conflicts and new errors. |
Fixes #1662
The MinGW build is not successful anymore since addition of the file browser. This pull request doesn't fix this problem.