* [PATCH xf86-video-nouveau v2] xv: Silence build warning regarding const qualifier
@ 2019-01-20 19:50 Rhys Kidd
0 siblings, 0 replies; only message in thread
From: Rhys Kidd @ 2019-01-20 19:50 UTC (permalink / raw)
To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
Silences warning with gcc 8.2:
nouveau_xv.c: In function ‘NVInitVideo’:
nouveau_xv.c:2247:68: warning: passing argument 2 of ‘vlCreateAdaptorXvMC’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
adaptorsXvMC[0] = vlCreateAdaptorXvMC(pScreen, textureAdaptor[0]->name);
~~~~~~~~~~~~~~~~~^~~~~~
In file included from nouveau_xv.c:42:
vl_hwmc.h:6:63: note: expected ‘char *’ but argument is of type ‘const char *’
XF86MCAdaptorPtr vlCreateAdaptorXvMC(ScreenPtr pScreen, char *xv_adaptor_name);
~~~~~~^~~~~~~~~~~~~~~
Signed-off-by: Rhys Kidd <rhyskidd@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
---
Appears that I don't have committer rights to xf86-video-nouveau on
git.freedesktop.org.
Ilia: Would you be able to push this patch to master?
src/nouveau_xv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/nouveau_xv.c b/src/nouveau_xv.c
index a7ec21a..3258ef7 100644
--- a/src/nouveau_xv.c
+++ b/src/nouveau_xv.c
@@ -2244,7 +2244,7 @@ NVInitVideo(ScreenPtr pScreen)
XF86MCAdaptorPtr *adaptorsXvMC = malloc(sizeof(XF86MCAdaptorPtr));
if (adaptorsXvMC) {
- adaptorsXvMC[0] = vlCreateAdaptorXvMC(pScreen, textureAdaptor[0]->name);
+ adaptorsXvMC[0] = vlCreateAdaptorXvMC(pScreen, (char *)textureAdaptor[0]->name);
if (adaptorsXvMC[0]) {
vlInitXvMC(pScreen, 1, adaptorsXvMC);
--
2.19.1
_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/nouveau
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-01-20 19:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-20 19:50 [PATCH xf86-video-nouveau v2] xv: Silence build warning regarding const qualifier Rhys Kidd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox