]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix m_ssl_gnutls under GCC on recent versions of GnuTLS.
authorPeter Powell <petpow@saberuk.com>
Mon, 19 Nov 2012 00:37:29 +0000 (00:37 +0000)
committerattilamolnar <attilamolnar@hush.com>
Mon, 19 Nov 2012 00:46:25 +0000 (01:46 +0100)
Commas at the end of enumerator lists are valid in C99 but are not
valid in C++ before C++11. This causes a build error on GCC when
using -pedantic.

src/modules/extra/m_ssl_gnutls.cpp

index db69b655780fdb002a89dd2b3b6bba0733ba21d8..45076c8b47f31ba79a9d44c01480f1e315f8ae26 100644 (file)
@@ -42,6 +42,7 @@
 /* $ModDesc: Provides SSL support for clients */
 /* $CompileFlags: pkgconfincludes("gnutls","/gnutls/gnutls.h","") exec("libgcrypt-config --cflags") */
 /* $LinkerFlags: rpath("pkg-config --libs gnutls") pkgconflibs("gnutls","/libgnutls.so","-lgnutls") exec("libgcrypt-config --libs") */
+/* $NoPedantic */
 
 // These don't exist in older GnuTLS versions
 #if(GNUTLS_VERSION_MAJOR < 2)