summaryrefslogtreecommitdiff
path: root/odb-tests
diff options
context:
space:
mode:
Diffstat (limited to 'odb-tests')
-rw-r--r--odb-tests/common/query/basics/driver.cxx2
-rw-r--r--odb-tests/common/section/polymorphism/driver.cxx2
-rw-r--r--odb-tests/pgsql/bulk/driver.cxx6
3 files changed, 6 insertions, 4 deletions
diff --git a/odb-tests/common/query/basics/driver.cxx b/odb-tests/common/query/basics/driver.cxx
index 73b81d2..eb7e2a7 100644
--- a/odb-tests/common/query/basics/driver.cxx
+++ b/odb-tests/common/query/basics/driver.cxx
@@ -195,7 +195,7 @@ main (int argc, char* argv[])
transaction t (db->begin ());
string name;
- unsigned short age;
+ unsigned short age (0);
#if defined(MULTI_DATABASE)
query q (query::age >= query::_ref (age) &&
diff --git a/odb-tests/common/section/polymorphism/driver.cxx b/odb-tests/common/section/polymorphism/driver.cxx
index c15d317..bdde74f 100644
--- a/odb-tests/common/section/polymorphism/driver.cxx
+++ b/odb-tests/common/section/polymorphism/driver.cxx
@@ -1762,7 +1762,7 @@ main (int argc, char* argv[])
using namespace test9;
using std::shared_ptr;
- unsigned long long id;
+ unsigned long id;
{
container c (123);
diff --git a/odb-tests/pgsql/bulk/driver.cxx b/odb-tests/pgsql/bulk/driver.cxx
index ba25542..6b30073 100644
--- a/odb-tests/pgsql/bulk/driver.cxx
+++ b/odb-tests/pgsql/bulk/driver.cxx
@@ -12,10 +12,12 @@
#include <stddef.h>
#include <sys/select.h>
-// Note: hack.
+// Note: hack (also, some platforms, like Mac OS, provide it).
//
#include <arpa/inet.h>
-#define htonll(x) ((((long long)htonl(x)) << 32) + htonl((x) >> 32))
+#ifndef htonll
+# define htonll(x) ((((long long)htonl(x)) << 32) + htonl((x) >> 32))
+#endif
#undef NDEBUG
#include <assert.h>