Mark tls_required as unused if were building without tls...
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 20 Dec 2013 00:39:13 +0000 (00:39 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 20 Dec 2013 01:08:42 +0000 (01:08 +0000)
src/main/client.c

index 6f535ed..4c46efd 100644 (file)
@@ -835,7 +835,11 @@ static RADCLIENT *client_parse(CONF_SECTION *cs, int in_server)
  *     type.  This way we don't have to change too much in the other
  *     source-files.
  */
+#ifdef WITH_TLS
 RADCLIENT_LIST *clients_parse_section(CONF_SECTION *section, bool tls_required)
+#else
+RADCLIENT_LIST *clients_parse_section(CONF_SECTION *section, UNUSED bool tls_required)
+#endif
 {
        int             global = false, in_server = false;
        CONF_SECTION    *cs;