Fix Visual Studio warnings at level /W4 (#2312)

* SharePtr fix for gcc 7.2

* Fix for Poco issue #2285

* Add missing fail() to sqlite test

* Fix for testIllegalFilePath

* Update SQLiteTest.cpp

* fixexes for Visual Studio and /W4 switch

* Fixed warnings for Foundation module

* Fixed warnings for JSON module

* Fixed warnings for XML module

* Fixed warnings for NET module

* Fix unfixable warning in VarHolder.h

* Fix Typo:

* Fixes for Net

* Fixes for Crypto

* Fixes for NetSSL

* Fixes for Zip

* Fixes for PDF

* Fixes for SQLite

* Fixes for SQLite

* Fixes for SQL

* Fixes for MongoDB

* Fixes for Redis

* Fixes for CppParser

* Fixes for CppUnit

* Fixes for PageCompiler

* Fixes for PostgreSQL

* Fixes for MySQL

* Fixes for SevenZip

* Last Warnings

* Fixes for ODBC

* fix std::type_info include
This commit is contained in:
Marian Krivoš
2018-05-04 16:47:40 +02:00
committed by Aleksandar Fabijanic
parent 301b681fa8
commit 42ef846651
161 changed files with 1167 additions and 1135 deletions

View File

@@ -292,7 +292,7 @@ bool Extractor::realExtractFixedBlob(std::size_t pos, enum_field_types type, voi
bind.is_null = &isNull;
bind.buffer_type = type;
bind.buffer = buffer;
bind.buffer_length = len;
bind.buffer_length = static_cast<unsigned long>(len);
if (!_stmt.fetchColumn(pos, &bind))
return false;