1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-10-13 19:22:18 +00:00
serenity/Demos
Lenny Maiorani 765936ebae
Everywhere: Switch from (void) to [[maybe_unused]] (#4473)
Problem:
- `(void)` simply casts the expression to void. This is understood to
  indicate that it is ignored, but this is really a compiler trick to
  get the compiler to not generate a warning.

Solution:
- Use the `[[maybe_unused]]` attribute to indicate the value is unused.

Note:
- Functions taking a `(void)` argument list have also been changed to
  `()` because this is not needed and shows up in the same grep
  command.
2020-12-21 00:09:48 +01:00
..
Cube Demos: Use pledge and unveil 2020-11-02 13:15:54 +01:00
DynamicLink Everywhere: Switch from (void) to [[maybe_unused]] (#4473) 2020-12-21 00:09:48 +01:00
DynamicObject Everywhere: Switch from (void) to [[maybe_unused]] (#4473) 2020-12-21 00:09:48 +01:00
Eyes Demos: Use pledge and unveil 2020-11-02 13:15:54 +01:00
Fire Demos: Use pledge and unveil 2020-11-02 13:15:54 +01:00
HelloWorld Demos: Use pledge and unveil 2020-11-02 13:15:54 +01:00
LibGfxDemo Demos: Use pledge and unveil 2020-11-02 13:15:54 +01:00
Mouse Demos: Use pledge and unveil 2020-11-02 13:15:54 +01:00
Screensaver Demos: Use pledge and unveil 2020-11-02 13:15:54 +01:00
WebView Demos: Use new format functions. 2020-10-08 09:59:55 +02:00
WidgetGallery Everywhere: Switch from (void) to [[maybe_unused]] (#4473) 2020-12-21 00:09:48 +01:00
CMakeLists.txt Loader: Stabilize loader & Use shared libraries everywhere :^) 2020-12-14 23:05:53 +01:00