diff options
author | Sven Göthel <[email protected]> | 2024-05-26 04:44:27 +0200 |
---|---|---|
committer | Sven Göthel <[email protected]> | 2024-05-26 04:44:27 +0200 |
commit | 3cb9f5724950dc1b5de4928a82e92f585065b322 (patch) | |
tree | 17457655a6adad56c48fdce0887694a144eb4692 | |
parent | c9cc73d35af55041f7f5e3142e6d47babd4fd866 (diff) |
HCI|L2CAP Ioctl Header require paused pedantic and zero-length-array warning (due to new strict pedantic setting)v3.3.2
-rw-r--r-- | api/direct_bt/HCIIoctl.hpp | 8 | ||||
-rw-r--r-- | api/direct_bt/L2CAPIoctl.hpp | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/api/direct_bt/HCIIoctl.hpp b/api/direct_bt/HCIIoctl.hpp index bb3cf996..ec01d7ec 100644 --- a/api/direct_bt/HCIIoctl.hpp +++ b/api/direct_bt/HCIIoctl.hpp @@ -76,6 +76,8 @@ #ifndef HCI_IOCTL_HPP_ #define HCI_IOCTL_HPP_ +#include <jau/cpp_pragma.hpp> + #include "BTAddress.hpp" #include "linux_kernel_types.hpp" @@ -91,6 +93,10 @@ extern "C" { * @{ */ +PRAGMA_DISABLE_WARNING_PUSH +PRAGMA_DISABLE_WARNING_PEDANTIC +PRAGMA_DISABLE_WARNING_ZERO_LENGTH_ARRAY + /** * Missing information ??? */ @@ -2535,6 +2541,8 @@ struct hci_inquiry_req { }; #define IREQ_CACHE_FLUSH 0x0001 +PRAGMA_DISABLE_WARNING_POP + /**@}*/ #endif /* HCI_IOCTL_HPP_ */ diff --git a/api/direct_bt/L2CAPIoctl.hpp b/api/direct_bt/L2CAPIoctl.hpp index a4dfa5d9..ff2acd32 100644 --- a/api/direct_bt/L2CAPIoctl.hpp +++ b/api/direct_bt/L2CAPIoctl.hpp @@ -80,6 +80,8 @@ #ifndef L2CAP_IOCTL_HPP_ #define L2CAP_IOCTL_HPP_ +#include <jau/cpp_pragma.hpp> + #include "BTAddress.hpp" #include "linux_kernel_types.hpp" @@ -98,6 +100,10 @@ extern "C" { * @{ */ +PRAGMA_DISABLE_WARNING_PUSH +PRAGMA_DISABLE_WARNING_PEDANTIC +PRAGMA_DISABLE_WARNING_ZERO_LENGTH_ARRAY + /** * Information from include/net/bluetooth/l2cap.h * Mixed with own comments. @@ -551,6 +557,8 @@ struct l2cap_le_credits { __le16 credits; } __packed; +PRAGMA_DISABLE_WARNING_POP + /**@}*/ #endif /* L2CAP_IOCTL_HPP_ */ |