1
0

Disable warnings

This commit is contained in:
Scott E. Graves
2017-02-15 08:14:00 -06:00
parent 42cdbe2cd0
commit 2932c434e9
5 changed files with 11 additions and 6 deletions

View File

@@ -23,7 +23,7 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#define DOKAN_H_
/** Do not include NTSTATUS. Fix duplicate preprocessor definitions */
#define WIN32_NO_STATUS
#define WIN32_NO_STATUS
#include <windows.h>
#undef WIN32_NO_STATUS
#include <ntstatus.h>

View File

@@ -3310,7 +3310,7 @@ public:
if( negative )
result = '-';
digits_d = table_id; // for not making an overflow in uint type
digits_d = static_cast<double>(table_id); // for not making an overflow in uint type
digits_d *= TTMATH_BITS_PER_UINT;
digits_d += index + 1;
digits_d *= ToStringLog2(b);

View File

@@ -32,7 +32,7 @@ void CSiaDriveConfig::Load( )
std::string s;
s.resize(f.GetLength());
f.Read(&s[0], s.length());
f.Read(&s[0], static_cast<UINT>(s.length()));
f.Close();

View File

@@ -1,6 +1,5 @@
#include "stdafx.h"
#include "SiaDokanDrive.h"
#include <dokan\dokan.h>
#include <filesystem>
using namespace Sia::Api;
@@ -139,7 +138,7 @@ private:
}
else
{
bool isFile = (FileAttributes & FILE_NON_DIRECTORY_FILE);
bool isFile = (FileAttributes & FILE_NON_DIRECTORY_FILE) ? true : false;
DokanFileInfo->IsDirectory = !isFile;
if (isFile)
{

View File

@@ -10,7 +10,6 @@
#include "targetver.h"
#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit
#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions
@@ -20,6 +19,7 @@
#include <afxdisp.h> // MFC Automation classes
#endif // _AFX_NO_OLE_SUPPORT
#ifndef _AFX_NO_DB_SUPPORT
#include <afxdb.h> // MFC ODBC database classes
#endif // _AFX_NO_DB_SUPPORT
@@ -37,3 +37,9 @@
#include <afxsock.h> // MFC socket extensions
#pragma warning(push)
#pragma warning(disable:4005)
#include <dokan\dokan.h>
#pragma warning(pop)