[S] Change in osmo-trx[master]: ms/va: make ancient gcc < 8 happy
Hoernchen has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-trx/+/34248 ) Change subject: ms/va: make ancient gcc < 8 happy ...................................................................... ms/va: make ancient gcc < 8 happy Change-Id: Ib94b9b073a0d2af84ce5791b5f40c63cd7ef9329 --- M Transceiver52M/grgsm_vitac/grgsm_vitac.h 1 file changed, 14 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-trx refs/changes/48/34248/1 diff --git a/Transceiver52M/grgsm_vitac/grgsm_vitac.h b/Transceiver52M/grgsm_vitac/grgsm_vitac.h index d00c3ad..c1e470c 100644 --- a/Transceiver52M/grgsm_vitac/grgsm_vitac.h +++ b/Transceiver52M/grgsm_vitac/grgsm_vitac.h @@ -42,6 +42,10 @@ #define MULTI_VER_TARGET_ATTR_CLANGONLY #endif +/* ancient gcc < 8 has no attribute, clang always pretends to be gcc 4 */ +#if !defined(__clang__) && __GNUC__ < 8 +#define NO_UBSAN __attribute__((no_sanitize_undefined)) +#else #if defined(__has_attribute) #if __has_attribute(no_sanitize) #define NO_UBSAN __attribute__((no_sanitize("undefined"))) @@ -49,6 +53,7 @@ #else #define NO_UBSAN #endif +#endif #define SYNC_SEARCH_RANGE 30 const int d_OSR(4); -- To view, visit https://gerrit.osmocom.org/c/osmo-trx/+/34248 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-trx Gerrit-Branch: master Gerrit-Change-Id: Ib94b9b073a0d2af84ce5791b5f40c63cd7ef9329 Gerrit-Change-Number: 34248 Gerrit-PatchSet: 1 Gerrit-Owner: Hoernchen <ewild@sysmocom.de> Gerrit-MessageType: newchange
participants (1)
-
Hoernchen