Browse Source

Fix some compiler warnings

Signed-off-by: falkTX <falktx@falktx.com>
pull/330/head
falkTX 4 years ago
parent
commit
9d8df7e122
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 7 additions and 1 deletions
  1. +6
    -0
      distrho/src/DistrhoDefines.h
  2. +1
    -1
      distrho/src/DistrhoPluginInternal.hpp

+ 6
- 0
distrho/src/DistrhoDefines.h View File

@@ -193,6 +193,12 @@ private: \
# define DISTRHO_OS_SPLIT_STR ":"
#endif

/* MSVC warnings */
#ifdef _MSC_VER
# define strdup _strdup
# pragma warning(disable:4244) /* possible loss of data */
#endif

/* Useful typedefs */
typedef unsigned char uchar;
typedef unsigned short int ushort;


+ 1
- 1
distrho/src/DistrhoPluginInternal.hpp View File

@@ -249,7 +249,7 @@ public:

/* Verify that virtual functions are overriden if parameters, programs or states are in use.
* This does not work on all compilers, but we use it purely as informational check anyway. */
#ifdef __GNUC__
#if defined(__GNUC__) && !defined(__clang__)
# ifdef DPF_ABORT_ON_ERROR
# define DPF_ABORT abort();
# else


Loading…
Cancel
Save