From c0296179acba42801337d3dbb3534bd192aeadae Mon Sep 17 00:00:00 2001 From: orbea Date: Thu, 7 Feb 2019 12:17:09 -0800 Subject: [PATCH] Silence warnings with 32-bit linux. --- cores/libretro-video-processor/video_processor_v4l2.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cores/libretro-video-processor/video_processor_v4l2.c b/cores/libretro-video-processor/video_processor_v4l2.c index 35703eda93..62ee5047ce 100644 --- a/cores/libretro-video-processor/video_processor_v4l2.c +++ b/cores/libretro-video-processor/video_processor_v4l2.c @@ -33,6 +33,7 @@ #include #include +#include #include #include @@ -1011,9 +1012,9 @@ RETRO_API void VIDEOPROC_CORE_PREFIX(retro_cheat_set)(unsigned index, bool enabl { } +#if 0 static void videoinput_set_control_v4l2( uint32_t id, double val ) { -#if 0 struct v4l2_queryctrl query; query.id = id; @@ -1023,8 +1024,8 @@ static void videoinput_set_control_v4l2( uint32_t id, double val ) control.value = query.minimum + ((int) ((val * ((double) (query.maximum - query.minimum))) + 0.5)); ioctl( video_device_fd, VIDIOC_S_CTRL, &control ); } -#endif } +#endif RETRO_API bool VIDEOPROC_CORE_PREFIX(retro_load_game)(const struct retro_game_info *game) { @@ -1197,7 +1198,7 @@ RETRO_API bool VIDEOPROC_CORE_PREFIX(retro_load_game)(const struct retro_game_in return false; } v4l2_ncapbuf = reqbufs.count; - printf("GOT v4l2_ncapbuf=%ld\n", v4l2_ncapbuf); + printf("GOT v4l2_ncapbuf=%" PRI_SIZET "\n", v4l2_ncapbuf); for (index = 0; index < v4l2_ncapbuf; index++) { @@ -1295,7 +1296,7 @@ RETRO_API bool VIDEOPROC_CORE_PREFIX(retro_load_game)(const struct retro_game_in return false; } - printf("Allocated %lu byte conversion buffer\n", + printf("Allocated %" PRI_SIZET " byte conversion buffer\n", video_cap_width * video_cap_height * sizeof(uint32_t)); pixel_format = RETRO_PIXEL_FORMAT_XRGB8888;