summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Jamroot.jam1
-rw-r--r--lib/output/pq/writePqCopyStrm.h3
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;