From 4eba3904a150a9ba6d718e3b81c3b0e582166031 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 26 Jan 2015 10:57:53 +0200 Subject: Make #pragma once work --- bug/list | 8 -------- reference/bug/list | 12 ++++++++++++ 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/bug/list b/bug/list index 6bd3c62..7cb8d7d 100644 --- a/bug/list +++ b/bug/list @@ -1,13 +1,5 @@ ! Document MSSQL stored procedure call support [doc,mssql] -! Warning on #pragma once in the main file - - Doesn't seem like there is a clean way to disable this warning in GCC - (e.g., no access to the GCC's data structures to override the handler - or some such). - - The only feasible idea so far is to filter the diagnostics. - - Document character encoding used to return text for each database [doc] ! Copyright update [doc] diff --git a/reference/bug/list b/reference/bug/list index ba7819e..826c701 100644 --- a/reference/bug/list +++ b/reference/bug/list @@ -1,3 +1,15 @@ ++ Warning on #pragma once in the main file + + Current implementation changes libcpp's internal state to make the logic + work and filters the warning via libcpp's diagnostics callback. + + An alternative approach would be to actually #include the header into + stdin rather than sourcing, just it like we do for the at-once mode. + This would require filtering stderr and removing all the "Included + from ..." lines (good we can choose the file id so can work around + translation). Also, the rather non-trivial header inclusion logic + (odb/include.?xx) will have to be adjusted. See also paper notes. + + Statement name truncation in PostgreSQL [pgsql] There seems to be a limit on the prepared statement name in PG. The result -- cgit v1.1