diff --git a/src/logger.cpp b/src/logger.cpp index f3c704b..31c3088 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -88,7 +88,7 @@ void cls_log::write_norm(int loglvl, uint prefixlen) snprintf(msg_flood, sizeof(msg_flood) , "%s", &msg_full[prefixlen]); - snprintf(msg_prefix, prefixlen, "%s", msg_full); + (void)snprintf(msg_prefix, prefixlen, "%s", msg_full); if (log_mode == LOGMODE_FILE) { strcpy(msg_full + strlen(msg_full),"\n"); @@ -112,7 +112,7 @@ void cls_log::add_errmsg(int flgerr, int err_save) } memset(err_buf, 0, sizeof(err_buf)); - strerror_r(err_save, err_buf, sizeof(err_buf)); + (void)strerror_r(err_save, err_buf, sizeof(err_buf)); errsz = strlen(err_buf); msgsz = strlen(msg_full); diff --git a/src/movie.cpp b/src/movie.cpp index 73c7516..74c3037 100644 --- a/src/movie.cpp +++ b/src/movie.cpp @@ -528,13 +528,13 @@ int cls_movie::alloc_video_buffer(AVFrame *frame, int align) return ret; } - frame->buf[0] = av_buffer_alloc((uint)ret + 4*(uint)plane_padding); + frame->buf[0] = av_buffer_alloc((uint)(ret + 4*plane_padding)); if (!frame->buf[0]) { ret = AVERROR(ENOMEM); av_frame_unref(frame); return ret; } - frame->buf[1] = av_buffer_alloc((uint)ret + 4*(uint)plane_padding); + frame->buf[1] = av_buffer_alloc((uint)(ret + 4*plane_padding)); if (!frame->buf[1]) { ret = AVERROR(ENOMEM); av_frame_unref(frame);