wayland/src
Giulio Camuffo f0be757bfa scanner: don't emit the extern declarations for external types
We were emitting the extern declarations of all types used in the protocol,
even if not defined in it. This caused warnings to be produced when using
the -Wredundant-decls compiler flag when building an extension that uses
e.g. wl_surface. However we only need the extern declarations if the
protocol defines a factory for those external interfaces. That is a
bad design and can be however done by including the dependent protocol
header first.
So only emit the extern declarations for the types that the protocol
actually defines, this restoring the behavior we were using in 1.7.

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=90677

Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Tested-by: Arnaud Vrac <rawoul@gmail.com>
2015-06-01 11:47:39 +03:00
..
.gitignore gitignore: adpat to scanner and protocol path changes 2014-11-19 16:35:49 +02:00
connection.c connection: abort if a listener function is NULL 2014-11-12 14:00:38 +02:00
event-loop.c event-loop: Dispatch idle callbacks twice 2015-01-28 18:12:31 -08:00
scanner.c scanner: don't emit the extern declarations for external types 2015-06-01 11:47:39 +03:00
scanner.mk Rename source subdir from wayland to src 2011-08-12 16:25:14 -04:00
wayland-client-core.h introduce new headers wayland-client-core.h and wayland-server-core.h 2015-04-30 14:11:25 +03:00
wayland-client-uninstalled.pc.in build: add uninstalled pkg-config files 2012-05-29 10:09:59 -04:00
wayland-client.c Spelling fixes (cosmetic) 2015-03-19 16:56:17 +02:00
wayland-client.h introduce new headers wayland-client-core.h and wayland-server-core.h 2015-04-30 14:11:25 +03:00
wayland-client.pc.in Export the Wayland protocol XML file 2013-09-21 21:48:56 -07:00
wayland-egl-core.h wayland-egl: add a core header 2015-04-30 14:30:08 +03:00
wayland-egl.h wayland-egl: add a core header 2015-04-30 14:30:08 +03:00
wayland-os.c os: wrap accept4(SOCK_CLOEXEC) 2012-04-25 09:37:42 +03:00
wayland-os.h os: wrap accept4(SOCK_CLOEXEC) 2012-04-25 09:37:42 +03:00
wayland-private.h connection: Leave fd open in wl_connection_destroy 2014-11-04 11:26:22 +02:00
wayland-scanner-uninstalled.pc.in build: Add wayland-scanner.pc. 2013-07-03 16:38:12 -04:00
wayland-scanner.pc.in build: Add wayland-scanner.pc. 2013-07-03 16:38:12 -04:00
wayland-server-core.h introduce new headers wayland-client-core.h and wayland-server-core.h 2015-04-30 14:11:25 +03:00
wayland-server-uninstalled.pc.in build: add uninstalled pkg-config files 2012-05-29 10:09:59 -04:00
wayland-server.c server: give more precise error message 2015-03-19 16:11:21 +02:00
wayland-server.h introduce new headers wayland-client-core.h and wayland-server-core.h 2015-04-30 14:11:25 +03:00
wayland-server.pc.in Export the Wayland protocol XML file 2013-09-21 21:48:56 -07:00
wayland-shm.c cosmetic: convert some function returns from int to bool 2014-11-04 13:01:58 +02:00
wayland-util.c doc: Remove wl_map from documentation 2015-01-23 18:44:56 -08:00
wayland-util.h Spelling fixes (cosmetic) 2015-03-19 16:56:17 +02:00
wayland-version.h.in Add a public header for the version number 2012-04-12 17:54:44 -04:00