vcos_verify() warnings - discard result from vcos_verify()
authorLuke Diamand <luke@diamand.org>
Thu, 29 Sep 2016 19:14:13 +0000 (20:14 +0100)
committerLuke Diamand <luke@diamand.org>
Thu, 29 Sep 2016 19:16:28 +0000 (20:16 +0100)
It looks like vcos_verify() is being used here to enable
better debugging (hit a breakpoint if we ever take this code
path and drop into a debugger, but in normal use do nothing).

The compiler now warns about the ignored vcos_verify() rvalue,
so just cast the result to (void).

interface/khronos/egl/egl_client.c

index 472ef0ca2c423db3bc9f7d753183b3796ca6f179..9d617c8960a3b2fb21b9373bb1e90e73ff06165d 100644 (file)
@@ -1740,7 +1740,7 @@ static void send_pixmap(EGL_SURFACE_T *surface)
       KHRN_IMAGE_WRAP_T image;
 
       if (!platform_get_pixmap_info(surface->pixmap, &image)) {
-         vcos_verify(0); /* the pixmap has become invalid... */
+         (void)vcos_verify(0); /* the pixmap has become invalid... */
          return;
       }
 
@@ -1819,7 +1819,7 @@ static void retrieve_pixmap(EGL_SURFACE_T *surface, bool wait)
       KHRN_IMAGE_WRAP_T image;
 
       if (!platform_get_pixmap_info(surface->pixmap, &image)) {
-         vcos_verify(0); /* the pixmap has become invalid... */
+         (void)vcos_verify(0); /* the pixmap has become invalid... */
          return;
       }