From 2c34e3bf2613faaf45fd4491668b647004c76b54 Mon Sep 17 00:00:00 2001 From: Brian Adamson Date: Wed, 29 Apr 2020 23:07:53 -0400 Subject: [PATCH] Linux/gcc tweak for normSocket code --- examples/normSocket.h | 5 ++++- include/normSession.h | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/normSocket.h b/examples/normSocket.h index 763e2c2..20cbfda 100644 --- a/examples/normSocket.h +++ b/examples/normSocket.h @@ -114,7 +114,9 @@ typedef enum NormSocketEventType NORM_SOCKET_CLOSING, // indicates remote endpoint is closing socket (only read data at this point) NORM_SOCKET_CLOSE // indicates socket is now closed (invalid for further operations) } NormSocketEventType; - + +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wpedantic" typedef struct { NormSocketEventType type; @@ -134,6 +136,7 @@ typedef struct }; }; } NormSocketEvent; +#pragma GCC diagnostic pop bool NormGetSocketEvent(NormInstanceHandle normInstance, NormSocketEvent* event, bool waitForEvent = true); diff --git a/include/normSession.h b/include/normSession.h index 6208e8e..e62cab5 100644 --- a/include/normSession.h +++ b/include/normSession.h @@ -59,7 +59,7 @@ class NormController SEND_ERROR, USER_TIMEOUT, // The ones below here are not exposed via the NORM API - SEND_OK, + SEND_OK }; virtual void Notify(NormController::Event event,