Fix deprecation warnings for older GCC versions 77/18377/1 6.99.2 guppy/6.99.2 guppy_6.99.2
authorJohann CAHIER <johann.cahier@iot.bzh>
Wed, 28 Nov 2018 14:29:45 +0000 (15:29 +0100)
committerJohann CAHIER <johann.cahier@iot.bzh>
Wed, 28 Nov 2018 17:05:20 +0000 (18:05 +0100)
For some reason, SDK doesn't display warning when AFB_BINDING_VERSION
is defined as 2.
Using #warning instead of #pragma GCC warning fixes the display.

Change-Id: I3c96b3630e0d1eac63b2fde72bdec3c7f3d1714a
Signed-off-by: Johann CAHIER <johann.cahier@iot.bzh>
include/afb/afb-binding.h

index 085dc38..448baf1 100644 (file)
@@ -96,10 +96,10 @@ struct json_object;
 "
 #else
 #  if AFB_BINDING_VERSION == 1
-#    pragma GCC warning "Using binding version 1, consider to switch to version 3"
+#    warning "Using binding version 1, consider to switch to version 3"
 #  endif
 #  if AFB_BINDING_VERSION == 2
-#    pragma GCC warning "Using binding version 2, consider to switch to version 3"
+#    warning "Using binding version 2, consider to switch to version 3"
 #  endif
 #endif