Explorar o código

Fix warning for unused function in gcc if compiled WITH_WEBSOCKET but without WITH_LUA

See also issue #104
bel2125 %!s(int64=10) %!d(string=hai) anos
pai
achega
acca08ec6e
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/civetweb.c

+ 2 - 0
src/civetweb.c

@@ -2968,7 +2968,9 @@ static void base64_encode(const unsigned char *src, int src_len, char *dst)
     }
     }
     dst[j++] = '\0';
     dst[j++] = '\0';
 }
 }
+#endif
 
 
+#if defined(USE_LUA)
 static unsigned char b64reverse(char letter) {
 static unsigned char b64reverse(char letter) {
     if (letter>='A' && letter<='Z') return letter-'A';
     if (letter>='A' && letter<='Z') return letter-'A';
     if (letter>='a' && letter<='z') return letter-'a'+26;
     if (letter>='a' && letter<='z') return letter-'a'+26;