diff options
author | Johann CAHIER <johann.cahier@iot.bzh> | 2018-11-28 15:29:45 +0100 |
---|---|---|
committer | Johann CAHIER <johann.cahier@iot.bzh> | 2018-11-28 18:05:20 +0100 |
commit | 13a5afe7dbd698b2d85212cf4275858a1734a49e (patch) | |
tree | 03e830d62a25929e6c412c277243bfdb0a477eaa | |
parent | bc247d4c9e16e548c84466d8975529568e7c395d (diff) |
Fix deprecation warnings for older GCC versionsguppy_6.99.2guppy/6.99.26.99.2
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>
-rw-r--r-- | include/afb/afb-binding.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/afb/afb-binding.h b/include/afb/afb-binding.h index 085dc388..448baf13 100644 --- a/include/afb/afb-binding.h +++ b/include/afb/afb-binding.h @@ -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 |