mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-22 21:58:08 +00:00
Fixing compilation problem with Centos7
This commit is contained in:
parent
5c635ab5c2
commit
0bc7d25eed
1 changed files with 10 additions and 0 deletions
|
|
@ -138,6 +138,12 @@ private:
|
|||
return (mMask & value) == value && (value || mMask == 0);
|
||||
}
|
||||
|
||||
// On CentOs 7 GCC 4.8.5 have issue with array-bounds
|
||||
#if __GNUC__ == 4 && __GNUC_MINOR__ == 8 && __GNUC_PATCHLEVEL__ == 5
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Warray-bounds"
|
||||
#endif
|
||||
|
||||
static constexpr StorageType init (
|
||||
typename std::initializer_list<T>::const_iterator begin,
|
||||
typename std::initializer_list<T>::const_iterator end
|
||||
|
|
@ -145,6 +151,10 @@ private:
|
|||
return begin != end ? (StorageType(*begin) | init(begin + 1, end)) : StorageType(0);
|
||||
}
|
||||
|
||||
#if __GNUC__ == 4 && __GNUC_MINOR__ == 8 && __GNUC_PATCHLEVEL__ == 5
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
StorageType mMask;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue