]> granicus.if.org Git - graphviz/commit
gvc: squash -Wconversion warnings in 'gvevent_button_press'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 8 Nov 2022 01:56:05 +0000 (17:56 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 11 Nov 2022 01:09:34 +0000 (17:09 -0800)
commitf988d801393c830af154cf70b9ab223e05a21610
treef9824fa77e22d8a92b7a2a46cd63019d1f0e09fb
parent877fae605f6cf23de5aa00f870b344332a2693f3
gvc: squash -Wconversion warnings in 'gvevent_button_press'

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;
        |                       ^~~~~~
lib/gvc/gvevent.c