summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRhys Kidd <rhyskidd@gmail.com>2019-01-20 22:21:32 -0500
committerIlia Mirkin <imirkin@alum.mit.edu>2019-01-20 23:01:13 -0500
commit2905ea76571faed91e7d17b5dc6e44758e71ff0b (patch)
tree2be5bfa905d428f6a140f47453bc262107c70aa1
parenteb93278fadaab508ba8c2db65d2d3af2bd421efa (diff)
downloadxorg-driver-xf86-video-nouveau-2905ea76571faed91e7d17b5dc6e44758e71ff0b.tar.gz
dri2: Mark local create/destroy buffer and copy region functions as static
Avoids warnings with gcc 8.2: nouveau_dri2.c:38:1: warning: no previous prototype for ‘nouveau_dri2_create_buffer2’ [-Wmissing-prototypes] nouveau_dri2_create_buffer2(ScreenPtr pScreen, DrawablePtr pDraw, unsigned int attachment, ^~~~~~~~~~~~~~~~~~~~~~~~~~~ nouveau_dri2.c:109:1: warning: no previous prototype for ‘nouveau_dri2_create_buffer’ [-Wmissing-prototypes] nouveau_dri2_create_buffer(DrawablePtr pDraw, unsigned int attachment, ^~~~~~~~~~~~~~~~~~~~~~~~~~ nouveau_dri2.c:117:1: warning: no previous prototype for ‘nouveau_dri2_destroy_buffer2’ [-Wmissing-prototypes] nouveau_dri2_destroy_buffer2(ScreenPtr pScreen, DrawablePtr pDraw, DRI2BufferPtr buf) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ nouveau_dri2.c:131:1: warning: no previous prototype for ‘nouveau_dri2_destroy_buffer’ [-Wmissing-prototypes] nouveau_dri2_destroy_buffer(DrawablePtr pDraw, DRI2BufferPtr buf) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ nouveau_dri2.c:137:1: warning: no previous prototype for ‘nouveau_dri2_copy_region2’ [-Wmissing-prototypes] nouveau_dri2_copy_region2(ScreenPtr pScreen, DrawablePtr pDraw, RegionPtr pRegion, ^~~~~~~~~~~~~~~~~~~~~~~~~ nouveau_dri2.c:215:1: warning: no previous prototype for ‘nouveau_dri2_copy_region’ [-Wmissing-prototypes] nouveau_dri2_copy_region(DrawablePtr pDraw, RegionPtr pRegion, ^~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Rhys Kidd <rhyskidd@gmail.com>
-rw-r--r--src/nouveau_dri2.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nouveau_dri2.c b/src/nouveau_dri2.c
index a726e86..3d53785 100644
--- a/src/nouveau_dri2.c
+++ b/src/nouveau_dri2.c
@@ -34,7 +34,7 @@ static PixmapPtr get_drawable_pixmap(DrawablePtr drawable)
return (*drawable->pScreen->GetWindowPixmap)((WindowPtr)drawable);
}
-DRI2BufferPtr
+static DRI2BufferPtr
nouveau_dri2_create_buffer2(ScreenPtr pScreen, DrawablePtr pDraw, unsigned int attachment,
unsigned int format)
{
@@ -105,7 +105,7 @@ nouveau_dri2_create_buffer2(ScreenPtr pScreen, DrawablePtr pDraw, unsigned int a
return &nvbuf->base;
}
-DRI2BufferPtr
+static DRI2BufferPtr
nouveau_dri2_create_buffer(DrawablePtr pDraw, unsigned int attachment,
unsigned int format)
{
@@ -113,7 +113,7 @@ nouveau_dri2_create_buffer(DrawablePtr pDraw, unsigned int attachment,
attachment, format);
}
-void
+static void
nouveau_dri2_destroy_buffer2(ScreenPtr pScreen, DrawablePtr pDraw, DRI2BufferPtr buf)
{
struct nouveau_dri2_buffer *nvbuf;
@@ -127,13 +127,13 @@ nouveau_dri2_destroy_buffer2(ScreenPtr pScreen, DrawablePtr pDraw, DRI2BufferPtr
free(nvbuf);
}
-void
+static void
nouveau_dri2_destroy_buffer(DrawablePtr pDraw, DRI2BufferPtr buf)
{
nouveau_dri2_destroy_buffer2(pDraw->pScreen, pDraw, buf);
}
-void
+static void
nouveau_dri2_copy_region2(ScreenPtr pScreen, DrawablePtr pDraw, RegionPtr pRegion,
DRI2BufferPtr pDstBuffer, DRI2BufferPtr pSrcBuffer)
{
@@ -211,7 +211,7 @@ nouveau_dri2_copy_region2(ScreenPtr pScreen, DrawablePtr pDraw, RegionPtr pRegio
FreeScratchGC(pGC);
}
-void
+static void
nouveau_dri2_copy_region(DrawablePtr pDraw, RegionPtr pRegion,
DRI2BufferPtr pDstBuffer, DRI2BufferPtr pSrcBuffer)
{