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

Commit 717a82e

Browse files
committed
Don't use pragma to hide warning
1 parent 78a07ac commit 717a82e

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

javascript.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
* License, v. 2.0. If a copy of the MPL was not distributed with this
33
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
44

5-
#ifndef _WIN32
6-
#pragma GCC diagnostic ignored "-Wwrite-strings"
7-
#endif
8-
95
#include <string>
106
#include <fstream>
117
#include <list>

makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ CXXFLAGS += -std=c++0x -fPIC \
77
-Wformat \
88
-Wstrict-overflow=5 \
99
-Wunused-macros \
10-
-Wno-unused-parameter
10+
-Wno-unused-parameter \
11+
-Wno-write-strings
1112

1213
CXXFLAGS += $(shell $(PKG_CONFIG) --cflags mozjs185) \
1314
$(shell $(PKG_CONFIG) --cflags hexchat-plugin)

0 commit comments

Comments
 (0)