Skip to content

Commit 2372376

Browse files
committed
Changes to compile successfully using -Wpedantic
1 parent d97eeac commit 2372376

30 files changed

+55
-52
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ OBJ := $(addprefix $(OBJ_DIR)/, $(SRC:%.cpp=%.o))
6363
DEPS := $(addprefix $(INC_DIR)/, $(HEADERS))
6464

6565
CXX := c++
66-
CXXFLAGS := -Wall -Wextra -Werror -std=c++98 -Iinclude -Iinclude/poll -Iinclude/config -Iinclude/http -Iinclude/utils -Iinclude/output
66+
CXXFLAGS := -Wall -Wextra -Werror -Wpedantic -std=c++98 -Iinclude -Iinclude/poll -Iinclude/config -Iinclude/http -Iinclude/utils -Iinclude/output
6767

6868
all: $(NAME)
6969

include/config/Config.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,4 +186,4 @@ class Config {
186186
void throwExeption(size_t line, std::string msg);
187187
};
188188

189-
#endif
189+
#endif

include/config/Context.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@ class Context {
6767
void addTokenOccurence(std::string token);
6868
};
6969

70-
#endif
70+
#endif

include/config/Init.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ class Init {
2020
static void initPoll();
2121
};
2222

23-
#endif
23+
#endif

include/config/argument.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ typedef enum arg_state_e {
1010
SUCCESS,
1111
FLAG_UNKNOWN,
1212
FLAG_DUPLICATE,
13-
ARG_INVALID,
13+
ARG_INVALID
1414
} arg_state_t;
1515

1616
typedef struct arg_s {
@@ -48,4 +48,4 @@ const arg_t args_g[] = {{'i', 0, setPrintInfo},
4848

4949
std::string loadArguments(int argc, char **argv);
5050

51-
#endif
51+
#endif

include/global.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ extern Log accessLog_g;
77
extern Log errorLog_g;
88
extern std::string cwd_g;
99

10-
#endif
10+
#endif

include/http/Request.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ class Request {
4040
int parseHeaderFields(std::string fields);
4141
};
4242

43-
#endif
43+
#endif

include/http/Response.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ class Response {
5050
std::string generateHead();
5151
};
5252

53-
#endif
53+
#endif

include/http/Uri.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ class Uri {
4949
bool compare(const Uri &rhs) const;
5050
};
5151

52-
#endif
52+
#endif

include/http/VirtualHost.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ class VirtualHost {
3838
Context *matchLocation(const std::string &uri);
3939
};
4040

41-
#endif
41+
#endif

0 commit comments

Comments
 (0)