Skip to content

Commit

Permalink
Fix GCC warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
EIREXE committed Feb 25, 2024
1 parent 74454c8 commit 8c42d5b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions video_decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,11 @@ void VideoDecoder::_read_decoded_frames(AVFrame *p_received_frame) {
}

if (!hw_transfer_frame.is_valid()) {
// Leave me alone until i port this to callable_mp
#pragma GCC diagnostic push

Check warning on line 427 in video_decoder.cpp

View workflow job for this annotation

GitHub Actions / 🏁 Windows Debug / Windows build - template_debug

unknown pragma 'GCC'

Check warning on line 427 in video_decoder.cpp

View workflow job for this annotation

GitHub Actions / 🏁 Windows Release / Windows build - template_release

unknown pragma 'GCC'
#pragma GCC diagnostic ignored "-Wcast-function-type"

Check warning on line 428 in video_decoder.cpp

View workflow job for this annotation

GitHub Actions / 🏁 Windows Debug / Windows build - template_debug

unknown pragma 'GCC'

Check warning on line 428 in video_decoder.cpp

View workflow job for this annotation

GitHub Actions / 🏁 Windows Release / Windows build - template_release

unknown pragma 'GCC'
hw_transfer_frame = Ref<FFmpegFrame>(memnew(FFmpegFrame(Ref<VideoDecoder>(this), (FFmpegFrame::return_frame_callback_t)&VideoDecoder::_hw_transfer_frame_return)));
#pragma GCC diagnostic pop

Check warning on line 430 in video_decoder.cpp

View workflow job for this annotation

GitHub Actions / 🏁 Windows Debug / Windows build - template_debug

unknown pragma 'GCC'

Check warning on line 430 in video_decoder.cpp

View workflow job for this annotation

GitHub Actions / 🏁 Windows Release / Windows build - template_release

unknown pragma 'GCC'
}

int transfer_result = av_hwframe_transfer_data(hw_transfer_frame->get_frame(), p_received_frame, 0);
Expand Down Expand Up @@ -595,7 +599,11 @@ Ref<FFmpegFrame> VideoDecoder::_ensure_frame_pixel_format(Ref<FFmpegFrame> p_fra
}

if (!scaler_frame.is_valid()) {
// Leave me alone until i port this to callable_mp
#pragma GCC diagnostic push

Check warning on line 603 in video_decoder.cpp

View workflow job for this annotation

GitHub Actions / 🏁 Windows Debug / Windows build - template_debug

unknown pragma 'GCC'

Check warning on line 603 in video_decoder.cpp

View workflow job for this annotation

GitHub Actions / 🏁 Windows Release / Windows build - template_release

unknown pragma 'GCC'
#pragma GCC diagnostic ignored "-Wcast-function-type"

Check warning on line 604 in video_decoder.cpp

View workflow job for this annotation

GitHub Actions / 🏁 Windows Debug / Windows build - template_debug

unknown pragma 'GCC'

Check warning on line 604 in video_decoder.cpp

View workflow job for this annotation

GitHub Actions / 🏁 Windows Release / Windows build - template_release

unknown pragma 'GCC'
scaler_frame = Ref<FFmpegFrame>(memnew(FFmpegFrame(Ref<VideoDecoder>(this), (FFmpegFrame::return_frame_callback_t)&VideoDecoder::_scaler_frame_return)));
#pragma GCC diagnostic pop

Check warning on line 606 in video_decoder.cpp

View workflow job for this annotation

GitHub Actions / 🏁 Windows Debug / Windows build - template_debug

unknown pragma 'GCC'

Check warning on line 606 in video_decoder.cpp

View workflow job for this annotation

GitHub Actions / 🏁 Windows Release / Windows build - template_release

unknown pragma 'GCC'
}

// (re)initialize the scaler frame if needed.
Expand Down

0 comments on commit 8c42d5b

Please sign in to comment.