Exempt from strict warnings for struct packing and add MCU options

This commit is contained in:
Scott Shawcroft
2018-11-09 00:10:44 -08:00
parent 30e3c64134
commit 537a29273c
6 changed files with 27 additions and 1 deletions

View File

@@ -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