Skip to content

Warnings shown on Windows when compiling master branch #1423

Closed

Description

@justinclift

When compiling our master branch on Windows (MSVC), some warnings are displayed which we might want to clean up:

6>C:\git_repos\sqlitebrowser\src\ImportCsvDialog.cpp(263): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
6>C:\git_repos\sqlitebrowser\src\ImportCsvDialog.cpp(273): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
6>C:\git_repos\sqlitebrowser\src\ImportCsvDialog.cpp(425): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
6>C:\git_repos\sqlitebrowser\src\ImportCsvDialog.cpp(448): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
6>C:\git_repos\sqlitebrowser\src\ImportCsvDialog.cpp(641): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
6>C:\git_repos\sqlitebrowser\src\ImportCsvDialog.cpp(643): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
6>C:\git_repos\sqlitebrowser\src\ImportCsvDialog.cpp(649): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
6>C:\git_repos\sqlitebrowser\src\sqlitedb.cpp(581): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
6>C:\git_repos\sqlitebrowser\src\sqlitedb.cpp(681): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
6>C:\git_repos\sqlitebrowser\src\sqlitedb.cpp(827): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
6>C:\git_repos\sqlitebrowser\src\sqlitedb.cpp(844): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
6>  sqlitetablemodel.cpp
6>C:\git_repos\sqlitebrowser\src\sqlitetablemodel.cpp(194): warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
6>C:\dev\Qt\5.7\msvc2013_64\include\QtCore/qobjectdefs_impl.h(205): warning C4267: 'argument' : conversion from 'size_t' to 'const unsigned int', possible loss of data
6>          C:\dev\Qt\5.7\msvc2013_64\include\QtCore/qobjectdefs_impl.h(220) : see reference to class template instantiation 'QtPrivate::AreArgumentsCompatible<unsigned __int64,unsigned int>' being compiled
6>          C:\dev\Qt\5.7\msvc2013_64\include\QtCore/qobjectdefs_impl.h(221) : see reference to class template instantiation 'QtPrivate::CheckCompatibleArguments<QtPrivate::List<size_t,size_t>,QtPrivate::List<unsigned int,unsigned int>>' being compiled
6>          C:\dev\Qt\5.7\msvc2013_64\include\QtCore/qobject.h(232) : see reference to class template instantiation 'QtPrivate::CheckCompatibleArguments<QtPrivate::List<int,size_t,size_t>,QtPrivate::List<int,unsigned int,unsigned int>>' being compiled
6>          C:\git_repos\sqlitebrowser\src\sqlitetablemodel.cpp(34) : see reference to function template instantiation 'QMetaObject::Connection QObject::connect<void(__cdecl RowLoader::* )(int,size_t,size_t),void(__cdecl SqliteTableModel::* )(int,unsigned int,unsigned int)>(const RowLoader *,Func1,const SqliteTableModel *,Func2,Qt::ConnectionType)' being compiled
6>          with
6>          [
6>              Func1=void (__cdecl RowLoader::* )(int,size_t,size_t)
6>  ,            Func2=void (__cdecl SqliteTableModel::* )(int,unsigned int,unsigned int)
6>          ]
6>C:\dev\Qt\5.7\msvc2013_64\include\QtCore/qobjectdefs_impl.h(141): warning C4267: 'argument' : conversion from 'size_t' to 'unsigned int', possible loss of data
6>          C:\dev\Qt\5.7\msvc2013_64\include\QtCore/qobjectdefs_impl.h(140) : while compiling class template member function 'void QtPrivate::FunctorCall<QtPrivate::IndexesList<0,1,2>,SignalArgs,R,void (__cdecl SqliteTableModel::* )(int,unsigned int,unsigned int)>::call(SlotRet (__cdecl SqliteTableModel::* )(int,unsigned int,unsigned int),Obj *,void **)'
6>          with
6>          [
6>              SignalArgs=QtPrivate::List<int,size_t,size_t>
6>  ,            R=void
6>  ,            SlotRet=void
6>  ,            Obj=SqliteTableModel
6>          ]
6>          C:\dev\Qt\5.7\msvc2013_64\include\QtCore/qobjectdefs_impl.h(160) : see reference to function template instantiation 'void QtPrivate::FunctorCall<QtPrivate::IndexesList<0,1,2>,SignalArgs,R,void (__cdecl SqliteTableModel::* )(int,unsigned int,unsigned int)>::call(SlotRet (__cdecl SqliteTableModel::* )(int,unsigned int,unsigned int),Obj *,void **)' being compiled
6>          with
6>          [
6>              SignalArgs=QtPrivate::List<int,size_t,size_t>
6>  ,            R=void
6>  ,            SlotRet=void
6>  ,            Obj=SqliteTableModel
6>          ]
6>          C:\dev\Qt\5.7\msvc2013_64\include\QtCore/qobjectdefs_impl.h(160) : see reference to class template instantiation 'QtPrivate::FunctorCall<QtPrivate::IndexesList<0,1,2>,SignalArgs,R,void (__cdecl SqliteTableModel::* )(int,unsigned int,unsigned int)>' being compiled
6>          with
6>          [
6>              SignalArgs=QtPrivate::List<int,size_t,size_t>
6>  ,            R=void
6>          ]
6>          C:\dev\Qt\5.7\msvc2013_64\include\QtCore/qobject_impl.h(120) : see reference to function template instantiation 'void QtPrivate::FunctionPointer<void (__cdecl SqliteTableModel::* )(int,unsigned int,unsigned int)>::call<Args,R>(void (__cdecl SqliteTableModel::* )(int,unsigned int,unsigned int),Obj *,void **)' being compiled
6>          with
6>          [
6>              Args=QtPrivate::List<int,size_t,size_t>
6>  ,            R=void
6>  ,            Obj=SqliteTableModel
6>          ]
6>          C:\dev\Qt\5.7\msvc2013_64\include\QtCore/qobject_impl.h(120) : see reference to function template instantiation 'void QtPrivate::FunctionPointer<void (__cdecl SqliteTableModel::* )(int,unsigned int,unsigned int)>::call<Args,R>(void (__cdecl SqliteTableModel::* )(int,unsigned int,unsigned int),Obj *,void **)' being compiled
6>          with
6>          [
6>              Args=QtPrivate::List<int,size_t,size_t>
6>  ,            R=void
6>  ,            Obj=SqliteTableModel
6>          ]
6>          C:\dev\Qt\5.7\msvc2013_64\include\QtCore/qobject_impl.h(114) : while compiling class template member function 'void QtPrivate::QSlotObject<Func2,QtPrivate::List<int,size_t,size_t>,void>::impl(int,QtPrivate::QSlotObjectBase *,QObject *,void **,bool *)'
6>          with
6>          [
6>              Func2=void (__cdecl SqliteTableModel::* )(int,unsigned int,unsigned int)
6>          ]
6>          C:\dev\Qt\5.7\msvc2013_64\include\QtCore/qobject_impl.h(129) : see reference to function template instantiation 'void QtPrivate::QSlotObject<Func2,QtPrivate::List<int,size_t,size_t>,void>::impl(int,QtPrivate::QSlotObjectBase *,QObject *,void **,bool *)' being compiled
6>          with
6>          [
6>              Func2=void (__cdecl SqliteTableModel::* )(int,unsigned int,unsigned int)
6>          ]
6>          C:\dev\Qt\5.7\msvc2013_64\include\QtCore/qobject.h(244) : see reference to class template instantiation 'QtPrivate::QSlotObject<Func2,QtPrivate::List<int,size_t,size_t>,void>' being compiled
6>          with
6>          [
6>              Func2=void (__cdecl SqliteTableModel::* )(int,unsigned int,unsigned int)
6>          ]
6>          C:\git_repos\sqlitebrowser\src\sqlitetablemodel.cpp(34) : see reference to function template instantiation 'QMetaObject::Connection QObject::connect<void(__cdecl RowLoader::* )(int,size_t,size_t),void(__cdecl SqliteTableModel::* )(int,unsigned int,unsigned int)>(const RowLoader *,Func1,const SqliteTableModel *,Func2,Qt::ConnectionType)' being compiled
6>          with
6>          [
6>              Func1=void (__cdecl RowLoader::* )(int,size_t,size_t)
6>  ,            Func2=void (__cdecl SqliteTableModel::* )(int,unsigned int,unsigned int)
6>          ]
6>  RowLoader.cpp
6>  sqlitetypes.cpp
6>C:\git_repos\sqlitebrowser\libs\antlr-2.7.7\antlr/CharScanner.hpp(566): warning C4996: 'stricmp': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _stricmp. See online help for details.
6>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(253) : see declaration of 'stricmp'
6>C:\git_repos\sqlitebrowser\libs\antlr-2.7.7\antlr/CharScanner.hpp(566): warning C4996: 'stricmp': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _stricmp. See online help for details.
6>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(253) : see declaration of 'stricmp'
6>  Sqlite3Parser.cpp
6>C:\git_repos\sqlitebrowser\src\grammar\Sqlite3Parser.cpp(3926): warning C4101: 'pe' : unreferenced local variable

The build itself succeeded and seems to run ok, which is the important thing. 😄

Activity

  1. MKleusberg commented on Feb 14, 2020

    @MKleusberg
    Member

    Closing this because it's really old and lots of code has changed since then. Let's open a new issue instead if there are any warnings when building the current code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions