Fix gtk issues using GCC 11 with gtk >= 3.20 #505
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Newer gcc is more strict when detecting issues. To be able to properly
build open-vm-tools, following fixes has to be done:
gdk_display_get_device_manager was deprecated and this is properly
detected by compiler and cause warning.
Use newer gdk_display_get_default_seat function.
Several gtk files can be no longer compiled using extern C and they
have to be in full C++ code.
Return value from read function has to be used otherwise produce
unused variable warning. Not working with the return value cause
unused result warning. This can be avoided using dummy retyping
in case return value is not used.
Signed-off-by: Miroslav Rezanina mrezanin@redhat.com