summaryrefslogtreecommitdiff
path: root/lib/output/pq
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-08-28 21:40:45 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-08-28 21:40:45 +0100
commitc0f5da7a6aaa2abe72e2a853089c4cba2503492e (patch)
tree077e03f46697156d8855121fd8c4c9f775bb114b /lib/output/pq
parentAdd -Woverloaded-virtual (diff)
downloadmygrate-c0f5da7a6aaa2abe72e2a853089c4cba2503492e.tar.bz2
mygrate-c0f5da7a6aaa2abe72e2a853089c4cba2503492e.tar.xz
mygrate-c0f5da7a6aaa2abe72e2a853089c4cba2503492e.zip
Add -Wdouble-promotion
Diffstat (limited to 'lib/output/pq')
-rw-r--r--lib/output/pq/writePqCopyStrm.h3
1 files changed, 3 insertions, 0 deletions
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;