Fix gcc -Wextra warnings
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Ian Romanick <idr@freedesktop.org> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>main
parent
6ce06202dd
commit
de8532dd83
|
@ -104,7 +104,8 @@ static void usage(char *name)
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
int i, c, fd, ret;
|
unsigned i;
|
||||||
|
int c, fd, ret;
|
||||||
char *modules[] = { "i915", "radeon", "nouveau", "vmwgfx", "exynos", "omapdrm", "tilcdc", "msm", "tegra" };
|
char *modules[] = { "i915", "radeon", "nouveau", "vmwgfx", "exynos", "omapdrm", "tilcdc", "msm", "tegra" };
|
||||||
drmVBlank vbl;
|
drmVBlank vbl;
|
||||||
drmEventContext evctx;
|
drmEventContext evctx;
|
||||||
|
|
|
@ -303,7 +303,7 @@ static int chown_check_return(const char *path, uid_t owner, gid_t group)
|
||||||
* special file node with the major and minor numbers specified by \p dev and
|
* special file node with the major and minor numbers specified by \p dev and
|
||||||
* parent directory if necessary and was called by root.
|
* parent directory if necessary and was called by root.
|
||||||
*/
|
*/
|
||||||
static int drmOpenDevice(long dev, int minor, int type)
|
static int drmOpenDevice(dev_t dev, int minor, int type)
|
||||||
{
|
{
|
||||||
stat_t st;
|
stat_t st;
|
||||||
const char *dev_name;
|
const char *dev_name;
|
||||||
|
@ -2213,7 +2213,7 @@ int drmGetClient(int fd, int idx, int *auth, int *pid, int *uid,
|
||||||
int drmGetStats(int fd, drmStatsT *stats)
|
int drmGetStats(int fd, drmStatsT *stats)
|
||||||
{
|
{
|
||||||
drm_stats_t s;
|
drm_stats_t s;
|
||||||
int i;
|
unsigned i;
|
||||||
|
|
||||||
if (drmIoctl(fd, DRM_IOCTL_GET_STATS, &s))
|
if (drmIoctl(fd, DRM_IOCTL_GET_STATS, &s))
|
||||||
return -errno;
|
return -errno;
|
||||||
|
|
|
@ -854,7 +854,7 @@ int drmHandleEvent(int fd, drmEventContextPtr evctx)
|
||||||
len = read(fd, buffer, sizeof buffer);
|
len = read(fd, buffer, sizeof buffer);
|
||||||
if (len == 0)
|
if (len == 0)
|
||||||
return 0;
|
return 0;
|
||||||
if (len < sizeof *e)
|
if (len < (int)sizeof *e)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
i = 0;
|
i = 0;
|
||||||
|
|
Loading…
Reference in New Issue