Avoids warnings with gcc 8.2: nv30_xv_tex.c:138:1: warning: no previous prototype for ‘NV30GetSurfaceFormat’ [-Wmissing-prototypes] NV30GetSurfaceFormat(PixmapPtr ppix, int *fmt_ret) ^~~~~~~~~~~~~~~~~~~~ nv40_xv_tex.c:138:1: warning: no previous prototype for ‘NV40GetSurfaceFormat’ [-Wmissing-prototypes] NV40GetSurfaceFormat(PixmapPtr ppix, int *fmt_ret) ^~~~~~~~~~~~~~~~~~~~ Signed-off-by: Rhys Kidd <rhyskidd@xxxxxxxxx> --- src/nv30_xv_tex.c | 2 +- src/nv40_xv_tex.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nv30_xv_tex.c b/src/nv30_xv_tex.c index bf75cfa..87b3299 100644 --- a/src/nv30_xv_tex.c +++ b/src/nv30_xv_tex.c @@ -134,7 +134,7 @@ NV30VideoTexture(ScrnInfoPtr pScrn, struct nouveau_bo *src, int offset, return TRUE; } -Bool +static Bool NV30GetSurfaceFormat(PixmapPtr ppix, int *fmt_ret) { switch (ppix->drawable.bitsPerPixel) { diff --git a/src/nv40_xv_tex.c b/src/nv40_xv_tex.c index 79ef1fc..01f6f8e 100644 --- a/src/nv40_xv_tex.c +++ b/src/nv40_xv_tex.c @@ -134,7 +134,7 @@ NV40VideoTexture(ScrnInfoPtr pScrn, struct nouveau_bo *src, int offset, return TRUE; } -Bool +static Bool NV40GetSurfaceFormat(PixmapPtr ppix, int *fmt_ret) { switch (ppix->drawable.bitsPerPixel) { -- 2.19.1 _______________________________________________ Nouveau mailing list Nouveau@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/nouveau