Skip to content

Commit 27d4295

Browse files
committed
Improved default Dune compilation flags
1 parent a471223 commit 27d4295

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

dune

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
(env
2-
(dev (flags (:standard -w -9 -principal)))
2+
(dev
3+
(flags (:standard -w -9 -principal))
4+
(c_flags (:standard -Wall -pedantic -Wextra -Wunused)))
35
(release (ocamlopt_flags (:standard -O3)))
46
)

dune-project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
(lang dune 1.1)
1+
(lang dune 1.7)
22
(name postgresql)

postgresql.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ build: [
1818

1919
depends: [
2020
"ocaml" {>= "4.05"}
21-
"dune" {build & >= "1.4.0"}
21+
"dune" {build & >= "1.7.0"}
2222
"base" {build}
2323
"stdio" {build}
2424
"base-bytes"

src/dune

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
(library
22
(public_name postgresql)
33
(c_names postgresql_stubs)
4-
(c_flags (
5-
(:include c_flags.sexp) -g -O2 -fPIC -DPIC
6-
; NOTE: for debugging before releases
7-
; -Wall -pedantic -Wextra -Wunused -Wno-long-long -Wno-keyword-macro
8-
))
4+
(c_flags
5+
(:standard) (:include c_flags.sexp) -O2 -fPIC -DPIC
6+
-Wno-keyword-macro
7+
)
98
(c_library_flags (:include c_library_flags.sexp))
109
(libraries threads bigarray)
1110
)

src/postgresql_stubs.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,8 @@ static struct custom_operations result_ops = {
528528
custom_hash_default,
529529
custom_serialize_default,
530530
custom_deserialize_default,
531-
custom_compare_ext_default
531+
custom_compare_ext_default,
532+
custom_fixed_length_default
532533
};
533534

534535
static inline value alloc_result(PGresult *res, np_callback *cb)

0 commit comments

Comments
 (0)