Guard clang pragmas against MSVC.

This commit is contained in:
2022-06-21 21:12:25 +01:00
parent 095ffc5806
commit 76c9153882
4 changed files with 24 additions and 4 deletions

View File

@@ -16,8 +16,11 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _MSC_VER
#pragma clang diagnostic push
#pragma ide diagnostic ignored "OCUnusedGlobalDeclarationInspection"
#endif
#ifndef LIBAARUFORMAT_STRUCTS_H
#define LIBAARUFORMAT_STRUCTS_H
@@ -309,4 +312,6 @@ typedef struct CdEccContext
#endif // LIBAARUFORMAT_STRUCTS_H
#pragma clang diagnostic pop
#ifndef _MSC_VER
#pragma clang diagnostic pop
#endif