log4cxx: add patch header

This commit is contained in:
Tony Theodore 2017-07-25 18:22:44 +10:00
parent 14b51faf69
commit eb34b4ea42
1 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,20 @@
This file is part of MXE. See LICENSE.md for licensing information.
taken from:
https://github.com/mxe/mxe/pull/1817
g++ 6 is stricter regarding narrowing conversions in initializer
lists. This causes errors similar to the following during compilation
with the gcc6 or gcc7 overlays:
```
locationinfo.cpp:163:21: error: narrowing conversion of '237'
from 'int' to 'char' inside { } [-Wnarrowing]
```
This has already been fixed upstream in several consecutive patches,
but there's no release including those fixes yet. This patch consists
of the essence of said fixes.
diff --git a/src/main/cpp/locationinfo.cpp b/src/main/cpp/locationinfo.cpp
index e76ea29..1cdcf24 100644
--- a/src/main/cpp/locationinfo.cpp