Commit 0ca5931f authored by msobczak's avatar msobczak

Pedantic.

parent f9c64524
......@@ -14,6 +14,7 @@
#include <cctype>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <ctime>
#include <sstream>
......
......@@ -14,6 +14,7 @@
#include <cctype>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <ctime>
#include <sstream>
......
......@@ -12,6 +12,7 @@
#include <cctype>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <ctime>
#include <sstream>
......
......@@ -15,7 +15,7 @@ namespace // anonymous
{
// helper function for parsing decimal data (for std::tm)
long parse10(char const * & p1, char * & p2, char * msg)
long parse10(char const * & p1, char * & p2, char const * msg)
{
long v = std::strtol(p1, &p2, 10);
if (p2 != p1)
......@@ -39,7 +39,7 @@ void soci::details::postgresql::parse_std_tm(char const * buf, std::tm & t)
long year, month, day;
long hour = 0, minute = 0, second = 0;
char * errMsg = "Cannot convert data to std::tm.";
char const * errMsg = "Cannot convert data to std::tm.";
year = parse10(p1, p2, errMsg);
month = parse10(p1, p2, errMsg);
......
......@@ -10,6 +10,8 @@
#include "soci-postgresql.h"
#include <limits>
#include <cstring>
#include <ctime>
namespace soci
{
......
......@@ -14,6 +14,7 @@
#include <cctype>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <ctime>
#include <sstream>
......
......@@ -12,6 +12,7 @@
#include <boost/date_time/gregorian/gregorian_types.hpp>
#include <boost/date_time/gregorian/conversion.hpp>
#include <ctime>
namespace soci
{
......
......@@ -10,6 +10,7 @@
#include "type-conversion-traits.h"
#include "soci-backend.h"
#include <ctime>
#include <vector>
......
......@@ -9,6 +9,7 @@
#define SOCI_ROWSET_H_INCLUDED
#include "statement.h"
#include <memory>
namespace soci
{
......
......@@ -11,6 +11,7 @@
#include "into-type.h"
#include "use-type.h"
#include "values.h"
#include <ctime>
#ifdef _MSC_VER
#pragma warning(disable:4355)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment