Skip to content
This repository was archived by the owner on May 24, 2024. It is now read-only.

Commit 5bd1b06

Browse files
committed
Build with more warnings
1 parent f4a4690 commit 5bd1b06

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

javascript.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1371,7 +1371,7 @@ static JSFunctionSpec hexchat_functions[] = {
13711371
{"del_pluginpref", hjs_delpluginpref, 1, JSPROP_READONLY|JSPROP_PERMANENT},
13721372
/* convenience functions not part of api */
13731373
{"get_nickcolor", hjs_getnickcolor, 1, JSPROP_READONLY|JSPROP_PERMANENT},
1374-
{0}
1374+
{0, 0, 0, 0}
13751375
};
13761376

13771377

makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@ CXX ?= g++
22
PKG_CONFIG ?= pkg-config
33

44
CXXFLAGS ?= -O2
5-
CXXFLAGS += -std=c++0x -Wall -fPIC
5+
CXXFLAGS += -std=c++0x -fPIC \
6+
-Wall -Wextra -pedantic \
7+
-Wformat \
8+
-Wstrict-overflow=5 \
9+
-Wunused-macros \
10+
-Wno-unused-parameter
11+
612
CXXFLAGS += $(shell $(PKG_CONFIG) --cflags mozjs185) \
713
$(shell $(PKG_CONFIG) --cflags hexchat-plugin)
814
LDFLAGS += -shared

0 commit comments

Comments
 (0)