kwin/autotests
Vlad Zahorodnii 7fffe99328 build: Add -Wno-unused-parameter compiler option
Due to being a compositor, kwin has to conform to some certain
interfaces. It means a lot of virtual functions and function tables to
integrate with C APIs. Naturally, we not always want to use every
argument in such functions.

Since we get -Wunused-parameter from -Wall, we have to plumb those
unused arguments in order to suppress compiler warnings at the moment.

However, I don't think that extra work is worth it. We cannot change or
alter prototypes in any way to fix the warning the desired way. Q_UNUSED
and similar macros are not good indicators of whether an argument is
used too, we tend to overlook putting or removing those macros. I've
also noticed that Q_UNUSED are not used to guide us with the removal no
longer needed parameters.

Therefore, I think it's worth adding -Wno-unused-parameter compiler
option to stop the compiler producing warnings about unused parameters.
It changes nothing except that we don't need to put Q_UNUSED anymore,
which can be really cumbersome sometimes. Note that it doesn't affect
unused variables, you'll still get a -Wunused-variable compiler warning
if a variable is unused.
2022-10-31 15:50:37 +00:00
..
drm build: Add -Wno-unused-parameter compiler option 2022-10-31 15:50:37 +00:00
integration build: Add -Wno-unused-parameter compiler option 2022-10-31 15:50:37 +00:00
libinput build: Add -Wno-unused-parameter compiler option 2022-10-31 15:50:37 +00:00
libkwineffects build: Add -Wno-unused-parameter compiler option 2022-10-31 15:50:37 +00:00
tabbox build: Add -Wno-unused-parameter compiler option 2022-10-31 15:50:37 +00:00
CMakeLists.txt Include org.freedesktop.locale1 support 2022-10-30 23:03:55 +01:00
onscreennotificationtest.cpp build: Add -Wno-unused-parameter compiler option 2022-10-31 15:50:37 +00:00
onscreennotificationtest.h
opengl_context_attribute_builder_test.cpp backends/x11/standalone: rename files to be more consistent 2022-07-24 13:05:13 +00:00
test_client_machine.cpp Change type of Window.wmCommand and Window.wmClientMachine to QString 2022-10-22 13:38:36 +00:00
test_ftrace.cpp
test_gestures.cpp wayland: Fix missing relative motion events 2022-10-25 08:18:45 +00:00
test_utils.cpp test_utils: Test whether mmap PROT_WRITE fails 2022-10-24 19:02:36 +02:00
test_virtual_desktops.cpp build: Add -Wno-unused-parameter compiler option 2022-10-31 15:50:37 +00:00
test_window_paint_data.cpp Make WindowItem handle opacity 2022-05-11 09:42:35 +00:00
test_x11_timestamp_update.cpp utils: Drop updateXTime() 2022-10-11 06:43:25 +00:00
test_xcb_size_hints.cpp Use floating geometry throughout 2022-07-14 10:04:46 +01:00
test_xcb_window.cpp replace all uses of QScopedPointer with std::unique_ptr 2022-08-04 12:30:09 +00:00
test_xcb_wrapper.cpp Rename AbstractClient to Window 2022-04-22 17:39:12 +00:00
test_xkb.cpp autotests: Fix testXkb in Qt 6 build 2022-10-23 09:11:04 +00:00
testutils.h
xcb_scaling_mock.cpp Ensure size is valid after maximising 2022-07-27 08:43:23 +00:00