From c0f5da7a6aaa2abe72e2a853089c4cba2503492e Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 28 Aug 2021 21:40:45 +0100 Subject: Add -Wdouble-promotion --- lib/output/pq/writePqCopyStrm.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/output/pq') 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::fmt, v); +#pragma GCC diagnostic pop } void operator()(timespec) const; void operator()(Date v) const; -- cgit v1.2.3