diff options
| author | Scott Shawcroft <[email protected]> | 2018-11-09 00:10:44 -0800 |
|---|---|---|
| committer | Scott Shawcroft <[email protected]> | 2018-11-09 00:10:44 -0800 |
| commit | 537a29273c08b1e047004e1bd71c37af82937dd4 (patch) | |
| tree | 4d64580d011bf6042223270fbd98b316e95a5aff /src/common | |
| parent | 30e3c64134789416e10ed867fa12c210b808e98f (diff) | |
Exempt from strict warnings for struct packing and add MCU options
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/tusb_types.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/tusb_types.h b/src/common/tusb_types.h index 8ce334e55..5c226f556 100644 --- a/src/common/tusb_types.h +++ b/src/common/tusb_types.h @@ -51,6 +51,10 @@ extern "C" {
#endif
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wpacked"
+#pragma GCC diagnostic ignored "-Wattributes"
+
/*------------------------------------------------------------------*/
/* CONSTANTS
*------------------------------------------------------------------*/
@@ -422,6 +426,8 @@ static inline uint8_t descriptor_len(uint8_t const p_desc[]) // Convert comma-separated string to descriptor unicode format
#define TUD_DESC_STRCONV( ... ) (const uint16_t[]) { TUD_DESC_STR_HEADER(VA_ARGS_NUM_(__VA_ARGS__)), __VA_ARGS__ }
+#pragma GCC diagnostic pop
+
#ifdef __cplusplus
}
#endif
|
