mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
Add -Wmissing-prototypes
This requires functions without a prototype definition to be static. This allows to detect dead code, export less symbols and put shared functions in headers.
This commit is contained in:
parent
685a5a11a9
commit
16e5e9541b
24 changed files with 66 additions and 123 deletions
|
|
@ -27,7 +27,7 @@ struct wlr_gles2_texture *gles2_get_texture(
|
|||
return (struct wlr_gles2_texture *)wlr_texture;
|
||||
}
|
||||
|
||||
struct wlr_gles2_texture *get_gles2_texture_in_context(
|
||||
static struct wlr_gles2_texture *get_gles2_texture_in_context(
|
||||
struct wlr_texture *wlr_texture) {
|
||||
struct wlr_gles2_texture *texture = gles2_get_texture(wlr_texture);
|
||||
if (!wlr_egl_is_current(texture->egl)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue