Fix -Wall warnings
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
EXAMPLE_FILES := HelloWorld ServerName EchoServer BroadcastingEchoServer UpgradeSync UpgradeAsync
|
EXAMPLE_FILES := HelloWorld ServerName EchoServer BroadcastingEchoServer UpgradeSync UpgradeAsync
|
||||||
THREADED_EXAMPLE_FILES := HelloWorldThreaded EchoServerThreaded
|
THREADED_EXAMPLE_FILES := HelloWorldThreaded EchoServerThreaded
|
||||||
override CXXFLAGS += -lpthread -Wconversion -std=c++17 -Isrc -IuSockets/src
|
override CXXFLAGS += -lpthread -Wall -std=c++17 -Isrc -IuSockets/src
|
||||||
override LDFLAGS += uSockets/*.o -lz
|
override LDFLAGS += uSockets/*.o -lz
|
||||||
|
|
||||||
DESTDIR ?=
|
DESTDIR ?=
|
||||||
|
|||||||
+1
-1
@@ -59,7 +59,7 @@ namespace uWS {
|
|||||||
unsigned int out = 0;
|
unsigned int out = 0;
|
||||||
|
|
||||||
/* Walk over all chars until end or null char, decoding in place */
|
/* Walk over all chars until end or null char, decoding in place */
|
||||||
for (int i = 0; i < statementValue.length() && in[i]; i++) {
|
for (unsigned int i = 0; i < statementValue.length() && in[i]; i++) {
|
||||||
/* Only bother with '%' */
|
/* Only bother with '%' */
|
||||||
if (in[i] == '%') {
|
if (in[i] == '%') {
|
||||||
/* Do we have enough data for two bytes hex? */
|
/* Do we have enough data for two bytes hex? */
|
||||||
|
|||||||
Reference in New Issue
Block a user