Comments (10)
Thank you! I'll check it out soon.
Suppressing the warning didn't appeal to me at first, especially doing it in the user code, but I think it's still alright.
from imguifiledialog.
I'm warnings free now. :)
Note that #pragma GCC diagnostic ignored "-Wunknown-pragmas"
is still in the header file. Either there should be written a temporary comment about those lines, or they should be removed. I suggest the former. And this issue may be closed.
from imguifiledialog.
Hello,
np i take into account all user advices :)
will check that
from imguifiledialog.
its ok now for you ?
from imguifiledialog.
I tried the code with the latest changes and the warnings didn't go away.
First, I think that #pragma GCC diagnostic ignored "-Wpragmas"
should have -Wunknown-pragmas
instead, but I tried both anyway. The problem instead is that this specific warning might not be controllable by #pragma
, i.e. it cannot be changed in any way. I even tried turning it into an error with #pragma GCC diagnostic error <kind>
and it didn't work. See https://gcc.gnu.org/onlinedocs/gcc/Diagnostic-Pragmas.html.
It looks like the only option is to suppress this warning from the command line. (This works: -Wno-unknown-pragmas
.)
from imguifiledialog.
One solution would be to add something like this in the CMakeLists.txt
file of this project:
if(UNIX)
target_compile_options(ImGuiFileDialog PUBLIC "-Wno-unknown-pragmas")
endif()
And probably instead of UNIX, it should check for a specific compiler:
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
from imguifiledialog.
ah yes its a solution. i tried "no-unknown-pragmas"' in code and was no effect. but not tested as flags to the compiler.
will test that. i think for unix is enough :)
thanks
from imguifiledialog.
Maybe it's for the same reason why #pragma GCC diagnostic ignored "-Wunknown-pragmas"
or #pragma GCC diagnostic error "-Wunknown-pragmas"
don't work either.
from imguifiledialog.
i see some issues and pullrequest on gcc and clang repo about these features, who are full of bug. so one day these pragma ignore in code will work. but for now this can work
from imguifiledialog.
thanks for your help :)
from imguifiledialog.
Related Issues (20)
- Compilation error Mac OS X HOT 3
- Possible misuse of comma operator here HOT 1
- How to set ImGuiFileDialog Window Flags? HOT 1
- Icon to filter looks like a search icon (magnifying glass) instead of a filter icon (funnel), which is misleading HOT 3
- Icon to clear the filter is identical to the icon to go to the root directory. HOT 4
- [Key Exploration] Allow to select a file from the displayed list by pressing keys with delay for have more chars than just the first HOT 4
- File dialog selects file in working directory over selected one HOT 2
- Not localizable HOT 7
- Add support for natural sort algorithm HOT 26
- Right-align file size column HOT 2
- Show ".." entry (and other folders) first HOT 9
- Non existing folders appear on top HOT 9
- Add way for avoid the listing of particular dirs/files global or by paths
- For Embedded Dialog Use MinSize Instead of MaxSize argument HOT 7
- Obsolete flag in the latest version of Dear Imgui HOT 3
- Exploration keys. the rows are auto selected when using up/down key.. BUG
- Only the first thumbnail is rendered HOT 3
- Build fails when IMGUI_HAS_VIEWPORT HOT 2
- Show also drive names instead of only letters in Windows HOT 1
- strlen() segfault when using with cimgui (strlen-avx2.S) HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imguifiledialog.