samhocevar / portable-file-dialogs

💬 Portable GUI dialogs library, C++11, single-header
Do What The F*ck You Want To Public License
1.03k stars 99 forks source link

Minor compilation warning #77

Open Lecrapouille opened 2 years ago

Lecrapouille commented 2 years ago

Always nice to compile with -Wshadow to catch some silent error (not the case here):

FileDialogs.hpp:1768:25: warning: declaration of ‘flag’ shadows a member of ‘pfd::message’ [-Wshadow]
 1768 |             std::string flag = "--";
      |                         ^~~~
In file included from XXX.cpp:
FileDialogs.hpp:138:16: note: shadowed declaration is here
  138 |     enum class flag
      |                ^~~~