mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-09 18:32:53 +03:00
Merge pull request #193 from mrdeep1/gcc-diagnostic
coap_{notls|openssl|tinydtls}.c: Support older gcc compilers
This commit is contained in:
3 files changed
+12
-12
No files matched your search
+4
-4
@@ -165,13 +165,13 @@ ssize_t coap_tls_read(coap_session_t *session UNUSED,
|
||||
|
||||
#else /* !HAVE_LIBTINYDTLS && !HAVE_OPENSSL */
|
||||
|
||||
/* Make compilers happy that do not like empty modules. As this
|
||||
* function is never used, we ignore -Wunused-function temporarily.
|
||||
#ifdef __clang__
|
||||
/* Make compilers happy that do not like empty modules. As this function is
|
||||
* never used, we ignore -Wunused-function at the end of compiling this file
|
||||
*/
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wunused-function"
|
||||
#endif
|
||||
static inline void dummy(void) {
|
||||
}
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
#endif /* !HAVE_LIBTINYDTLS && !HAVE_OPENSSL */
|
||||
+4
-4
@@ -1174,13 +1174,13 @@ ssize_t coap_tls_read(coap_session_t *session,
|
||||
|
||||
#else /* !HAVE_OPENSSL */
|
||||
|
||||
/* Make compilers happy that do not like empty modules. As this
|
||||
* function is never used, we ignore -Wunused-function temporarily.
|
||||
#ifdef __clang__
|
||||
/* Make compilers happy that do not like empty modules. As this function is
|
||||
* never used, we ignore -Wunused-function at the end of compiling this file
|
||||
*/
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wunused-function"
|
||||
#endif
|
||||
static inline void dummy(void) {
|
||||
}
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
#endif /* HAVE_OPENSSL */
|
||||
+4
-4
@@ -503,13 +503,13 @@ ssize_t coap_tls_read(coap_session_t *session UNUSED,
|
||||
|
||||
#else /* !HAVE_LIBTINYDTLS */
|
||||
|
||||
/* Make compilers happy that do not like empty modules. As this
|
||||
* function is never used, we ignore -Wunused-function temporarily.
|
||||
#ifdef __clang__
|
||||
/* Make compilers happy that do not like empty modules. As this function is
|
||||
* never used, we ignore -Wunused-function at the end of compiling this file
|
||||
*/
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wunused-function"
|
||||
#endif
|
||||
static inline void dummy(void) {
|
||||
}
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
#endif /* HAVE_LIBTINYDTLS */
|
||||
Reference in new issue
Block a user