Browse Source

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

See also issue #104
bel2125 10 năm trước cách đây
mục cha
commit
acca08ec6e
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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';
 }
+#endif
 
+#if defined(USE_LUA)
 static unsigned char b64reverse(char letter) {
     if (letter>='A' && letter<='Z') return letter-'A';
     if (letter>='a' && letter<='z') return letter-'a'+26;