Skip to content

Commit

Permalink
[profanity] actually, let's finally disable this fucking warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Simn committed Jun 12, 2018
1 parent 5f0a4d8 commit 1e3e5e0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .merlin
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ PKG camlzip
PKG xml-light
PKG sha
FLG -safe-string
FLG -w -3
FLG -w -3
FLG -w -40
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ EXTLIB_INCLUDES=$(EXTLIB_LIBS:%=-I libs/%)
ALL_INCLUDES=$(EXTLIB_INCLUDES) $(HAXE_INCLUDES)
FINDLIB_PACKAGES=$(FINDLIB_LIBS:%=-package %)
CFLAGS=
ALL_CFLAGS=-bin-annot -safe-string -thread -g -w -3 $(CFLAGS) $(ALL_INCLUDES) $(FINDLIB_PACKAGES)
ALL_CFLAGS=-bin-annot -safe-string -thread -g -w -3 -w -40 $(CFLAGS) $(ALL_INCLUDES) $(FINDLIB_PACKAGES)

MESSAGE_FILTER=sed -e 's/_build\/src\//src\//' tmp.tmp

Expand Down
4 changes: 2 additions & 2 deletions src/generators/genphp7.ml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ let write_resource dir name data =
let copy_file src dst =
let buffer_size = 8192 in
let buffer = String.create buffer_size in
let fd_in = Unix.openfile src [Unix.O_RDONLY] 0 in
let fd_out = Unix.openfile dst [Unix.O_WRONLY; Unix.O_CREAT; Unix.O_TRUNC] 0o644 in
let fd_in = Unix.openfile src [O_RDONLY] 0 in
let fd_out = Unix.openfile dst [O_WRONLY; O_CREAT; O_TRUNC] 0o644 in
let rec copy_loop () =
match Unix.read fd_in buffer 0 buffer_size with
| 0 -> ()
Expand Down

0 comments on commit 1e3e5e0

Please sign in to comment.