summaryrefslogtreecommitdiff
path: root/libpqpp/Jamfile.jam
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-09-18 14:25:24 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-09-18 14:25:24 +0100
commit216c87cbb7228d9130eead5e374dfd7a11a96b98 (patch)
tree7d17ea551cd6a87cb72f4513588262b9160b2e94 /libpqpp/Jamfile.jam
parentModern jam lto (diff)
downloadlibdbpp-postgresql-216c87cbb7228d9130eead5e374dfd7a11a96b98.tar.bz2
libdbpp-postgresql-216c87cbb7228d9130eead5e374dfd7a11a96b98.tar.xz
libdbpp-postgresql-216c87cbb7228d9130eead5e374dfd7a11a96b98.zip
Add JT recommended warnings
Diffstat (limited to 'libpqpp/Jamfile.jam')
-rw-r--r--libpqpp/Jamfile.jam15
1 files changed, 15 insertions, 0 deletions
diff --git a/libpqpp/Jamfile.jam b/libpqpp/Jamfile.jam
index ca1bd6a..86f8f92 100644
--- a/libpqpp/Jamfile.jam
+++ b/libpqpp/Jamfile.jam
@@ -17,6 +17,21 @@ project
<variant>release:<lto>on
<variant>debug:<warnings>extra
<variant>debug:<warnings-as-errors>on
+ <variant>debug:<cflags>-Wnon-virtual-dtor
+ <variant>debug:<cflags>-Wold-style-cast
+ <variant>debug:<cflags>-Wcast-align
+ <variant>debug:<cflags>-Wunused
+ <variant>debug:<cflags>-Woverloaded-virtual
+ <variant>debug:<cflags>-Wpedantic
+ <variant>debug:<cflags>-Wconversion
+ <variant>debug:<cflags>-Wsign-conversion
+ <variant>debug:<cflags>-Wnull-dereference
+ <variant>debug:<cflags>-Wdouble-promotion
+ <variant>debug:<cflags>-Wformat=2
+ <toolset>gcc,<variant>debug:<cflags>-Wduplicated-cond
+ <toolset>gcc,<variant>debug:<cflags>-Wduplicated-branches
+ <toolset>gcc,<variant>debug:<cflags>-Wlogical-op
+ <toolset>gcc,<variant>debug:<cflags>-Wuseless-cast
<variant>coverage:<coverage>on
;