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 | |
| parent | 30e3c64134789416e10ed867fa12c210b808e98f (diff) | |
Exempt from strict warnings for struct packing and add MCU options
Diffstat (limited to 'src/class')
| -rw-r--r-- | src/class/cdc/cdc.h | 6 | ||||
| -rw-r--r-- | src/class/hid/hid.h | 5 | ||||
| -rw-r--r-- | src/class/msc/msc.h | 6 |
3 files changed, 17 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
diff --git a/src/class/hid/hid.h b/src/class/hid/hid.h index d2803177b..0008e47fb 100644 --- a/src/class/hid/hid.h +++ b/src/class/hid/hid.h @@ -49,6 +49,10 @@ extern "C" {
#endif
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wpacked"
+#pragma GCC diagnostic ignored "-Wattributes"
+
//--------------------------------------------------------------------+
// Common Definitions
//--------------------------------------------------------------------+
@@ -609,6 +613,7 @@ enum HID_USAGE_CONSUMER_AC_PAN = 0x0238,
};
+#pragma GCC diagnostic pop
#ifdef __cplusplus
}
diff --git a/src/class/msc/msc.h b/src/class/msc/msc.h index a0abc2501..e7c32b303 100644 --- a/src/class/msc/msc.h +++ b/src/class/msc/msc.h @@ -52,6 +52,10 @@ extern "C" {
#endif
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wpacked"
+#pragma GCC diagnostic ignored "-Wattributes"
+
//--------------------------------------------------------------------+
// Mass Storage Class Constant
//--------------------------------------------------------------------+
@@ -392,6 +396,8 @@ typedef struct ATTR_PACKED TU_VERIFY_STATIC(sizeof(scsi_read10_t) == 10, "size is not correct");
TU_VERIFY_STATIC(sizeof(scsi_write10_t) == 10, "size is not correct");
+#pragma GCC diagnostic pop
+
#ifdef __cplusplus
}
#endif
|
