summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRhys Kidd <rhyskidd@gmail.com>2019-01-20 22:21:34 -0500
committerIlia Mirkin <imirkin@alum.mit.edu>2019-01-20 23:01:13 -0500
commit764b42babd38b545ccb3b43cd81c989bddf71c77 (patch)
tree7fe6c4cc298e82cbd37480a82f01870eae23b164
parent0fa6ba423593cb5c8e43b8f6569f90f9fcc2b36c (diff)
downloadxorg-driver-xf86-video-nouveau-764b42babd38b545ccb3b43cd81c989bddf71c77.tar.gz
xv/nv30, nv40: Mark local NV30GetSurfaceFormat and NV40GetSurfaceFormat as static
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@gmail.com>
-rw-r--r--src/nv30_xv_tex.c2
-rw-r--r--src/nv40_xv_tex.c2
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) {