Skip to content

Commit

Permalink
Refine warning pragmas, and make it possible to revert to all warning…
Browse files Browse the repository at this point in the history
…s (e.g. in order to fix them!)
  • Loading branch information
cannam committed Jan 5, 2024
1 parent 9ea3862 commit 9027f86
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/common/sysutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,18 @@
# define R__
#endif

#ifdef _MSC_VER
#ifndef RUBBERBAND_ENABLE_WARNINGS
#if defined(_MSC_VER)
#pragma warning(disable:4127; disable:4244; disable:4267)
#else
#elif defined(__GNUC__)
#pragma GCC diagnostic ignored "-Wconversion"
#elif defined(__clang__)
#pragma clang diagnostic ignored "-Wsign-conversion"
#pragma clang diagnostic ignored "-Wfloat-conversion"
#pragma clang diagnostic ignored "-Wimplicit-float-conversion"
#pragma clang diagnostic ignored "-Wshorten-64-to-32"
#endif
#endif

#ifdef __clang__
# define RTENTRY__ __attribute__((annotate("realtime")))
Expand Down

0 comments on commit 9027f86

Please sign in to comment.