Skip to content

Commit

Permalink
Ignore annoying warnings in FFmmpeg headers
Browse files Browse the repository at this point in the history
  • Loading branch information
nschlia committed Oct 1, 2024
1 parent 6223a19 commit 65034a2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/fpcompare.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,18 @@
*/

#include <stdio.h>

// Disable annoying warnings outside our code
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#pragma GCC diagnostic ignored "-Wsign-conversion"
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libavutil/opt.h>

#include <libswresample/swresample.h>

// For LIBAVFILTER_VERSION_INT
#include <libavfilter/avfilter.h>
#pragma GCC diagnostic pop

#include <chromaprint.h>

Expand Down
5 changes: 5 additions & 0 deletions test/metadata.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,14 @@

#include <stdio.h>

// Disable annoying warnings outside our code
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#pragma GCC diagnostic ignored "-Wsign-conversion"
#include <libavformat/avformat.h>
#include <libavutil/dict.h>
#include <libavutil/ffversion.h>
#pragma GCC diagnostic pop

int main (int argc, char **argv)
{
Expand Down

0 comments on commit 65034a2

Please sign in to comment.