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/class/cdc | |
| parent | 30e3c64134789416e10ed867fa12c210b808e98f (diff) | |
Exempt from strict warnings for struct packing and add MCU options
Diffstat (limited to 'src/class/cdc')
| -rw-r--r-- | src/class/cdc/cdc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/class/cdc/cdc.h b/src/class/cdc/cdc.h index 1b127ad28..0b6e57735 100644 --- a/src/class/cdc/cdc.h +++ b/src/class/cdc/cdc.h @@ -50,6 +50,10 @@ extern "C" {
#endif
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wpacked"
+#pragma GCC diagnostic ignored "-Wattributes"
+
/** \defgroup ClassDriver_CDC_Common Common Definitions
* @{ */
@@ -401,6 +405,8 @@ typedef struct ATTR_PACKED TU_VERIFY_STATIC(sizeof(cdc_line_control_state_t) == 2, "size is not correct");
+#pragma GCC diagnostic pop
+
/** @} */
#ifdef __cplusplus
|
