Skip to content

Commit

Permalink
Remove additional compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Dave committed Jul 22, 2024
1 parent 8b10c03 commit aed777a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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);

Expand Down
4 changes: 2 additions & 2 deletions src/movie.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit aed777a

Please sign in to comment.