Remove 2 compilation warnings under Windows with mingw64

Compiling Fl_Native_File_Chooser_WIN32.cxx...
fl_dnd_win32.cxx:436:11: warning: private field 'm_EnumF' is not used [-Wunused-private-field]
  FLEnum *m_EnumF;
          ^
1 warning generated.

Fl_Native_File_Chooser_WIN32.cxx:378:19: warning: use of bitwise '|' with boolean operands [-Wbitwise-instead-of-logical]
  bool unixpath = IsUnixPath(_directory) | IsUnixPath(_preset_file);    // caller uses unix paths?
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                         ||
Fl_Native_File_Chooser_WIN32.cxx:378:19: note: cast one or both operands to int to silence this warning
1 warning generated.
This commit is contained in:
ManoloFLTK
2023-02-20 12:43:36 +01:00
parent b8d2359a3c
commit 6f4cf105b1
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -375,7 +375,7 @@ static void RestoreCWD(char *thecwd) {
// SHOW FILE BROWSER // SHOW FILE BROWSER
int Fl_WinAPI_Native_File_Chooser_Driver::showfile() { int Fl_WinAPI_Native_File_Chooser_Driver::showfile() {
bool unixpath = IsUnixPath(_directory) | IsUnixPath(_preset_file); // caller uses unix paths? bool unixpath = IsUnixPath(_directory) || IsUnixPath(_preset_file); // caller uses unix paths?
ClearOFN(); ClearOFN();
clear_pathnames(); clear_pathnames();
size_t fsize = FNFC_MAX_PATH; size_t fsize = FNFC_MAX_PATH;
+1 -1
View File
@@ -433,7 +433,7 @@ public:
class FLDataObject : public IDataObject class FLDataObject : public IDataObject
{ {
DWORD m_cRefCount; DWORD m_cRefCount;
FLEnum *m_EnumF; //FLEnum *m_EnumF;
public: public:
FLDataObject() { m_cRefCount = 1; }// m_EnumF = new FLEnum();} FLDataObject() { m_cRefCount = 1; }// m_EnumF = new FLEnum();}
virtual ~FLDataObject() { } virtual ~FLDataObject() { }