Squashes the following compiler warnings. We know these are false positives due
to the switch cases in which this code appears.
gvevent.c:373:23: warning: conversion from ‘int’ to ‘unsigned char’ may change
value [-Wconversion]
373 | job->button = button;
| ^~~~~~
gvevent.c:378:23: warning: conversion from ‘int’ to ‘unsigned char’ may change
value [-Wconversion]
378 | job->button = button;
| ^~~~~~
gvevent.c:384:23: warning: conversion from ‘int’ to ‘unsigned char’ may change
value [-Wconversion]
384 | job->button = button;
| ^~~~~~
gvevent_find_current_obj(job, pointer);
gvevent_select_current_obj(job);
job->click = true;
- job->button = button;
+ job->button = (unsigned char)button;
job->needs_refresh = true;
break;
case 2: /* pan */
job->click = true;
- job->button = button;
+ job->button = (unsigned char)button;
job->needs_refresh = true;
break;
case 3: /* insert node or edge */
gvevent_find_current_obj(job, pointer);
job->click = true;
- job->button = button;
+ job->button = (unsigned char)button;
job->needs_refresh = true;
break;
case 4: