Skip to content

Commit

Permalink
fix 4663.2 & higher waring level for thirdparty libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
alabuzhev committed May 7, 2016
1 parent e425eff commit 8a4a7b9
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 17 deletions.
8 changes: 7 additions & 1 deletion far/changelog
@@ -1,4 +1,10 @@
drkns 07.05.2016 17:45:49 +0200 - build 4663
drkns 08.05.2016 01:12:06 +0200 - build 4664

1. Уточнение 4663.2.

2. Повысим уровень предупреждений для thirdparty-библиотек.

drkns 07.05.2016 17:45:49 +0200 - build 4663

1. Уточнение расчета общего индикатора удаления.

Expand Down
2 changes: 1 addition & 1 deletion far/filelist.cpp
Expand Up @@ -975,7 +975,7 @@ __int64 FileList::VMProcess(int OpCode,void *vParam,__int64 iParam)
{
if (mps->Mode == 2)
{
split<decltype(itemsList)>(mps->Item->asString(), STLF_UNIQUE, L"\r\n");
itemsList = split<decltype(itemsList)>(mps->Item->asString(), STLF_UNIQUE, L"\r\n");
if (itemsList.empty())
return Result;
}
Expand Down
3 changes: 1 addition & 2 deletions far/nsUniversalDetectorEx.cpp
Expand Up @@ -38,10 +38,9 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

namespace ucd
{
WARNING_PUSH(1)
WARNING_PUSH(2)

WARNING_DISABLE_GCC("-Wcast-qual")
WARNING_DISABLE_GCC("-Wuseless-cast")
WARNING_DISABLE_GCC("-Wzero-as-null-pointer-constant")
WARNING_DISABLE_GCC("-Wnon-virtual-dtor")

Expand Down
11 changes: 1 addition & 10 deletions far/sqlite.c
Expand Up @@ -33,20 +33,11 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include "common/preprocessor.hpp"

WARNING_PUSH(1)

WARNING_DISABLE_MSC(4701) // https://msdn.microsoft.com/en-us/library/1wea5zwe.aspx Potentially uninitialized local variable 'name' used
WARNING_DISABLE_MSC(4703) // https://msdn.microsoft.com/en-us/library/jj851030.aspx Potentially uninitialized local pointer variable 'name' used
WARNING_PUSH(3)

WARNING_DISABLE_GCC("-Warray-bounds")
WARNING_DISABLE_GCC("-Wstrict-overflow")
WARNING_DISABLE_GCC("-Wuninitialized")
WARNING_DISABLE_GCC("-Wunused-but-set-variable")
WARNING_DISABLE_GCC("-Wmaybe-uninitialized")
WARNING_DISABLE_GCC("-Wcast-qual")
WARNING_DISABLE_GCC("-Wsign-compare")
WARNING_DISABLE_GCC("-Wshadow")


#include "thirdparty/sqlite/sqlite3.c"

Expand Down
2 changes: 1 addition & 1 deletion far/sqlite.hpp
Expand Up @@ -33,7 +33,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

namespace sqlite
{
WARNING_PUSH(1)
WARNING_PUSH(3)

WARNING_DISABLE_GCC("-Wzero-as-null-pointer-constant")

Expand Down
2 changes: 1 addition & 1 deletion far/sqlite_unicode.c
Expand Up @@ -36,7 +36,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define SQLITE_CORE
#define SQLITE_ENABLE_UNICODE

WARNING_PUSH(1)
WARNING_PUSH(3)
WARNING_DISABLE_GCC("-Wcast-qual")
WARNING_DISABLE_GCC("-Wsequence-point")
WARNING_DISABLE_GCC("-Wsign-compare")
Expand Down
2 changes: 1 addition & 1 deletion far/vbuild.m4
@@ -1 +1 @@
m4_define(BUILD,4663)m4_dnl
m4_define(BUILD,4664)m4_dnl

0 comments on commit 8a4a7b9

Please sign in to comment.