diff include/freeDiameter/libfdproto.h @ 1052:b3d623f04b6d

Fix a number of remaining compilation warnings
author Sebastien Decugis <sdecugis@freediameter.net>
date Wed, 24 Apr 2013 12:49:00 +0800
parents cceb552b9b54
children 13fc3fc9c789
line wrap: on
line diff
--- a/include/freeDiameter/libfdproto.h	Wed Apr 24 11:17:30 2013 +0800
+++ b/include/freeDiameter/libfdproto.h	Wed Apr 24 12:49:00 2013 +0800
@@ -90,14 +90,14 @@
 #endif /* SWIG */
 
 /* Remove some deprecated warnings from some gnutls versions, when possible */
-#if defined(__GNUC__) && ((__GNUC__ * 100) + __GNUC_MINOR__) >= 405
+#if defined(__GNUC__)
 # define GCC_DIAG_DO_PRAGMA(x) _Pragma (#x)
 # define GCC_DIAG_PRAGMA(x) GCC_DIAG_DO_PRAGMA(GCC diagnostic x)
-# if ((__GNUC__ * 100) + __GNUC_MINOR__) >= 406
+# if ((__GNUC__ * 100) + __GNUC_MINOR__) >= 406		/* 4.6.x */
 #  define GCC_DIAG_OFF(x) GCC_DIAG_PRAGMA(push) \
      GCC_DIAG_PRAGMA(ignored x)
 #  define GCC_DIAG_ON(x) GCC_DIAG_PRAGMA(pop)
-# else
+# else							/* older */
 #  define GCC_DIAG_OFF(x) GCC_DIAG_PRAGMA(ignored x)
 #  define GCC_DIAG_ON(x)  GCC_DIAG_PRAGMA(warning x)
 # endif
@@ -1914,6 +1914,10 @@
  */
 int fd_sess_fromsid ( uint8_t * sid, size_t len, struct session ** session, int * isnew);
 
+/* only use the following in specific situations, e.g. app_radgw extension. They are normally handled by the framework only */
+int fd_sess_fromsid_msg ( uint8_t * sid, size_t len, struct session ** session, int * isnew); 
+int fd_sess_ref_msg ( struct session * session );
+
 /*
  * FUNCTION:	fd_sess_getsid
  *
"Welcome to our mercurial repository"