Skip to content
Commit f0be757b authored by Giulio Camuffo's avatar Giulio Camuffo Committed by Pekka Paalanen
Browse files

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: default avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
Tested-by: default avatarArnaud Vrac <rawoul@gmail.com>
parent c19d5e18
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment