diff options
author | Ian Romanick <[email protected]> | 2011-08-21 16:31:35 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2011-09-09 12:01:51 -0700 |
commit | 17d898d5b96809227d940768dc54cfe86070b8d0 (patch) | |
tree | 2b8e2a7feff98a4b442b514f9d288ba013124687 | |
parent | 1a8111aea43b714609a20c1cb841ca58ae10dd83 (diff) |
dri_util: Silence several "warning: unused parameter"
The parameters can't be removed because they are part of the DRI ABI.
-rw-r--r-- | src/mesa/drivers/dri/common/dri_util.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index 82638fa7207..6d6401934d9 100644 --- a/src/mesa/drivers/dri/common/dri_util.c +++ b/src/mesa/drivers/dri/common/dri_util.c @@ -418,6 +418,7 @@ driCreateNewDrawable(__DRIscreen *psp, const __DRIconfig *config, * supported either. */ (void) attrs; + (void) renderType; pdp = malloc(sizeof *pdp); if (!pdp) { @@ -594,8 +595,10 @@ driDestroyContext(__DRIcontext *pcp) /** * Create the per-drawable private driver information. * - * \param render_type Type of rendering target. \c GLX_RGBA is the only + * \param render_type Type of rendering target. \c GLX_RGBA_TYPE is the only * type likely to ever be supported for direct-rendering. + * However, \c GLX_RGBA_FLOAT_TYPE_ARB may eventually be + * supported by some drivers. * \param shared Context with which to share textures, etc. or NULL * * \returns An opaque pointer to the per-context private information on @@ -616,6 +619,8 @@ driCreateNewContext(__DRIscreen *psp, const __DRIconfig *config, __DRIcontext *pcp; void * const shareCtx = (shared != NULL) ? shared->driverPrivate : NULL; + (void) render_type; + pcp = malloc(sizeof *pcp); if (!pcp) return NULL; @@ -700,6 +705,9 @@ dri2CreateNewContext(__DRIscreen *screen, const __DRIconfig *config, static int driCopyContext(__DRIcontext *dest, __DRIcontext *src, unsigned long mask) { + (void) dest; + (void) src; + (void) mask; return GL_FALSE; } @@ -806,6 +814,8 @@ driCreateNewScreen(int scrn, static const __DRIextension *emptyExtensionList[] = { NULL }; __DRIscreen *psp; + (void) loaderPrivate; + if (driDriverAPI.InitScreen == NULL) return NULL; |