diff options
author | Damiano Galassi <[email protected]> | 2019-09-24 14:14:29 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2019-09-26 10:40:53 +0200 |
commit | cc03179d4c2c8b75d6f324f41b904585bcd43ccb (patch) | |
tree | 435ca6b18c0291b8190834120eed7a7b2a30198e /contrib/libdvdread | |
parent | 390449360f85e925601665adbe695e6e867537b5 (diff) |
fix warnings when compiling with clang.
Diffstat (limited to 'contrib/libdvdread')
-rw-r--r-- | contrib/libdvdread/A01-clang-warnings.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/contrib/libdvdread/A01-clang-warnings.patch b/contrib/libdvdread/A01-clang-warnings.patch new file mode 100644 index 000000000..2ecc2ce0a --- /dev/null +++ b/contrib/libdvdread/A01-clang-warnings.patch @@ -0,0 +1,13 @@ +diff --git a/src/dvdread/ifo_types.h b/src/dvdread/ifo_types.h +index f679d29..699853f 100644 +--- a/src/dvdread/ifo_types.h ++++ b/src/dvdread/ifo_types.h +@@ -30,7 +30,7 @@ + #undef PRAGMA_PACK_BEGIN + #undef PRAGMA_PACK_END + +-#if defined(__GNUC__) ++#if defined(__GNUC__) && !defined(__clang__) + #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) + #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) + #define ATTRIBUTE_PACKED __attribute__ ((packed,gcc_struct))
\ No newline at end of file |