summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Jamroot.jam1
-rw-r--r--libsqlitepp/Jamfile.jam9
-rw-r--r--libsqlitepp/sqlite-command.cpp6
-rw-r--r--libsqlitepp/sqlite-command.h6
4 files changed, 10 insertions, 12 deletions
diff --git a/Jamroot.jam b/Jamroot.jam
index 3915cab..96b3297 100644
--- a/Jamroot.jam
+++ b/Jamroot.jam
@@ -1,7 +1,6 @@
import os ;
import feature : feature ;
-using gcc : : [ os.environ CXX ] ;
using pkg-config ;
variant coverage : debug ;
diff --git a/libsqlitepp/Jamfile.jam b/libsqlitepp/Jamfile.jam
index f0d94df..6473a87 100644
--- a/libsqlitepp/Jamfile.jam
+++ b/libsqlitepp/Jamfile.jam
@@ -6,23 +6,22 @@ lib dbppcore : : : : <include>/usr/include/dbpp ;
lib boost_date_time ;
lib stdc++fs ;
-pkg-config.import glibmm : : <name>glibmm-2.4 ;
+pkg-config.import glibmm : : <name>glibmm-2.68 ;
pkg-config.import sqlite3 : : <name>sqlite3 ;
-project
- : requirements
+project libdbpp-sqlite : requirements
<cxxstd>20
<visibility>hidden
<linkflags>"-Wl,-z,defs,--warn-once,--gc-sections"
<variant>release:<lto>on
- <variant>debug:<warnings>extra
+ <toolset>gcc:<warnings>pedantic
+ <warnings>extra
<variant>debug:<warnings-as-errors>on
<variant>debug:<cflags>-Wnon-virtual-dtor
<variant>debug:<cflags>-Wold-style-cast
<variant>debug:<cflags>-Wcast-align
<variant>debug:<cflags>-Wunused
<variant>debug:<cflags>-Woverloaded-virtual
- <variant>debug:<cflags>-Wpedantic
<variant>debug:<cflags>-Wconversion
<variant>debug:<cflags>-Wsign-conversion
<variant>debug:<cflags>-Wnull-dereference
diff --git a/libsqlitepp/sqlite-command.cpp b/libsqlitepp/sqlite-command.cpp
index a789269..7f5e137 100644
--- a/libsqlitepp/sqlite-command.cpp
+++ b/libsqlitepp/sqlite-command.cpp
@@ -74,7 +74,7 @@ SQLite::Command::bindParamS(unsigned int n, const Glib::ustring & s)
return bindParamS(n, std::string_view(s.raw()));
}
void
-SQLite::Command::bindParamS(unsigned int n, const std::string_view & s)
+SQLite::Command::bindParamS(unsigned int n, const std::string_view s)
{
if (sqlite3_bind_text(stmt, static_cast<int>(n + 1), s.data(), static_cast<int>(s.length()), SQLITE_STATIC)
!= SQLITE_OK) {
@@ -87,12 +87,12 @@ SQLite::Command::bindParamB(unsigned int, bool)
throw DB::ParameterTypeNotSupported();
}
void
-SQLite::Command::bindParamT(unsigned int, const boost::posix_time::time_duration &)
+SQLite::Command::bindParamT(unsigned int, const boost::posix_time::time_duration)
{
throw DB::ParameterTypeNotSupported();
}
void
-SQLite::Command::bindParamT(unsigned int, const boost::posix_time::ptime &)
+SQLite::Command::bindParamT(unsigned int, const boost::posix_time::ptime)
{
throw DB::ParameterTypeNotSupported();
}
diff --git a/libsqlitepp/sqlite-command.h b/libsqlitepp/sqlite-command.h
index 2bf9cc1..ca5d6f9 100644
--- a/libsqlitepp/sqlite-command.h
+++ b/libsqlitepp/sqlite-command.h
@@ -28,10 +28,10 @@ namespace SQLite {
void bindParamF(unsigned int, float) override;
void bindParamS(unsigned int, const Glib::ustring &) override;
- void bindParamS(unsigned int, const std::string_view &) override;
+ void bindParamS(unsigned int, const std::string_view) override;
- void bindParamT(unsigned int, const boost::posix_time::time_duration &) override;
- void bindParamT(unsigned int, const boost::posix_time::ptime &) override;
+ void bindParamT(unsigned int, const boost::posix_time::time_duration) override;
+ void bindParamT(unsigned int, const boost::posix_time::ptime) override;
void bindNull(unsigned int) override;