1
0
Fork 0

main: Warn instead of error in meta_test_init()

Otherwise we'll get the warning

../src/core/main.c: In function 'meta_test_init':
../src/core/main.c:755:1: error: function might be candidate for attribute 'noreturn' [-Werror=suggest-attribute=noreturn]
  755 | meta_test_init (void)
      | ^~~~~~~~~~~~~~

when building without Wayland.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/837
This commit is contained in:
Jonas Ådahl 2019-10-09 10:58:43 +02:00 committed by Georges Basile Stavracas Neto
parent 1b4709794e
commit 69a0c1dc80

View file

@ -766,6 +766,6 @@ meta_test_init (void)
close (fd);
#else
g_error ("Tests require wayland support");
g_warning ("Tests require wayland support");
#endif
}