diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-08-28 21:40:45 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-08-28 21:40:45 +0100 |
commit | c0f5da7a6aaa2abe72e2a853089c4cba2503492e (patch) | |
tree | 077e03f46697156d8855121fd8c4c9f775bb114b | |
parent | Add -Woverloaded-virtual (diff) | |
download | mygrate-c0f5da7a6aaa2abe72e2a853089c4cba2503492e.tar.bz2 mygrate-c0f5da7a6aaa2abe72e2a853089c4cba2503492e.tar.xz mygrate-c0f5da7a6aaa2abe72e2a853089c4cba2503492e.zip |
Add -Wdouble-promotion
-rw-r--r-- | Jamroot.jam | 1 | ||||
-rw-r--r-- | lib/output/pq/writePqCopyStrm.h | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/Jamroot.jam b/Jamroot.jam index 8ed17d2..be40792 100644 --- a/Jamroot.jam +++ b/Jamroot.jam @@ -26,6 +26,7 @@ project : requirements <variant>debug:<cflags>-Woverloaded-virtual <variant>debug:<cflags>-Wconversion <variant>debug:<cflags>-Wsign-conversion + <variant>debug:<cflags>-Wdouble-promotion <variant>coverage:<coverage>on <toolset>tidy:<checkxx>boost-* <toolset>tidy:<checkxx>bugprone-* diff --git a/lib/output/pq/writePqCopyStrm.h b/lib/output/pq/writePqCopyStrm.h index e8a4fd3..a3ceb88 100644 --- a/lib/output/pq/writePqCopyStrm.h +++ b/lib/output/pq/writePqCopyStrm.h @@ -21,7 +21,10 @@ namespace MyGrate::Output::Pq { void operator()(std::floating_point auto v) const { +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdouble-promotion" fprintf(out, printer<decltype(v)>::fmt, v); +#pragma GCC diagnostic pop } void operator()(timespec) const; void operator()(Date v) const; |