[Mesa-dev] [PATCH kmscube 7/7] drm-legacy.c: suppress 'unused parameter warnings
Fabio Estevam
festevam at gmail.com
Wed Mar 15 21:47:54 UTC 2017
Hi Eric,
On Tue, Mar 14, 2017 at 10:33 AM, Eric Engestrom
<eric.engestrom at imgtec.com> wrote:
> Signed-off-by: Eric Engestrom <eric.engestrom at imgtec.com>
> ---
> drm-legacy.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drm-legacy.c b/drm-legacy.c
> index 2392a3d..8e49075 100644
> --- a/drm-legacy.c
> +++ b/drm-legacy.c
> @@ -33,6 +33,9 @@ static struct drm drm;
> static void page_flip_handler(int fd, unsigned int frame,
> unsigned int sec, unsigned int usec, void *data)
> {
> + /* suppress 'unused parameter' warnings */
> + (void)fd, (void)frame, (void)sec, (void)usec;
> +
> int *waiting_for_flip = data;
> *waiting_for_flip = 0;
> }
Thanks for your series.
Now there is a single warning left:
cube-tex.c: In function ‘init_tex’:
cube-tex.c:438:2: warning: enumeration value ‘SMOOTH’ not handled in
switch [-Wswitch]
switch (mode) {
^
Thanks
More information about the mesa-dev
mailing list