Takatoshi Kondo
f3fe1b801e
Merge pull request #871 from nicokruithof/master
...
Fixed warning in Visual Studio
2020-05-23 16:40:35 +09:00
Takatoshi Kondo
4fdbc7518f
Merge pull request #861 from ygj6/build
...
examples of packing boundary values
2020-05-18 22:29:46 +09:00
Nico Kruithof
0dbdb3d974
Fixed warning in Visual Studio
2020-05-15 07:16:34 +02:00
yuangongji
d7d5be414f
examples of packing boundary values
2020-05-08 14:28:45 +08:00
Takatoshi Kondo
4d36456799
Merge pull request #865 from ygj6/buffer
...
vrefbuffer: set default ref_size and chunk_size
2020-05-01 13:08:32 +09:00
yuangongji
b1725d4007
vrefbuffer: set default ref_size and chunk_size
2020-04-30 19:26:07 +08:00
Takatoshi Kondo
102dba8e24
Merge pull request #860 from ygj6/build
...
fix github actions failure and use C style casts instead of C++ style casts in zbuffer.h
2020-04-16 23:38:46 +09:00
yuangongji
1a372058a6
Use C style casts instead of C++ style casts
2020-04-16 12:46:16 +08:00
yuangongji
f8b691f622
run apt-get update to fix package installation failure
2020-04-16 11:40:53 +08:00
Takatoshi Kondo
7893d4d8c9
Merge pull request #851 from igor-sadchenko/fix-gnuc-macro-warnings
...
Fixed many warnings/errors with macro __GNUC__(issue #850 )
2020-03-29 09:43:00 +09:00
Igor Sadchenko
9a3cd0c951
Fixed many warnings/errors with macro __GNUC__(issue #850 )
2020-03-26 02:03:25 +03:00
Takatoshi Kondo
46684265d5
Merge pull request #846 from ygj6/build
...
install depends via vcpkg on Windows
2020-03-09 15:02:40 +09:00
Takatoshi Kondo
9e0d87b725
Merge pull request #834 from redboltz/limit_cov_guard
...
Limited codecov trigger.
2020-03-09 14:50:04 +09:00
Takatoshi Kondo
bbc03b2b0a
Limited codecov trigger.
...
Focused coverage target to library code.
Now, codecov supports tokenless upload.
2020-03-09 11:08:33 +09:00
yuangongji
b4d28c3d9d
install depends via vcpkg on Windows
2020-03-07 15:00:28 +08:00
Takatoshi Kondo
cc1098998f
Merge pull request #839 from ygj6/build
...
add MSGPACK_CXX_ONLY option to build c++ libraries only
2020-02-19 18:22:29 +09:00
yuangongji
d9c5978958
add MSGPACK_CXX_ONLY option to build c++ libraries only
2020-02-19 09:07:16 +08:00
Takatoshi Kondo
d05daa1df6
Merge pull request #842 from ygj6/doc
...
update the install section
2020-02-18 15:07:17 +09:00
yuangongji
534466894e
update the install section
2020-02-13 17:08:46 +08:00
Takatoshi Kondo
d04520044f
Merge pull request #833 from ygj6/master
...
add coverage target and integrate to github actions
2020-01-14 12:59:29 +09:00
yuangongji
c0fb6b3b8c
integrate coverage in github actions
2020-01-11 20:05:15 +08:00
yuangongji
19df3314f4
add coverage target in cmake
2020-01-11 13:23:19 +08:00
Takatoshi Kondo
b530b7f21a
Merge pull request #831 from ygj6/master
...
use cache in github actions
2020-01-08 11:06:27 +09:00
yuangongji
ed49ea3c95
use cache in github actions
2020-01-07 20:07:37 +08:00
Takatoshi Kondo
7918c19f8f
Merge branch 'jamessan-cxx11-32bit'
2020-01-06 15:02:29 +09:00
Takatoshi Kondo
0d7caecdb5
Fixed cmake condition.
...
If MSGPACK_CXX17 is ON then build MSGPACK_CXX11 target.
2020-01-06 13:04:14 +09:00
James McCoy
f8b0ad1766
Skip timespec_pack_convert_64bit_sec_max_nano on systems where tv_sec <= 32-bit
2020-01-05 21:38:52 -05:00
James McCoy
7ed7af90b6
Fix timespec_object.*_32bit_sec tests on 32-bit platforms
...
On 32-bit unix platforms, 0xffffffffUL is a 32-bit value so the compiler
complains about converting it to a signed value.
/home/runner/work/msgpack-c/msgpack-c/test/msgpack_cpp11.cpp:1085:20: error: constant expression evaluates to 4294967295 which cannot be narrowed to type '__time_t' (aka 'long') [-Wc++11-narrowing]
timespec val1{ 0xffffffffUL, 0 };
^~~~~~~~~~~~
/home/runner/work/msgpack-c/msgpack-c/test/msgpack_cpp11.cpp:1085:20: note: insert an explicit cast to silence this issue
timespec val1{ 0xffffffffUL, 0 };
^~~~~~~~~~~~
static_cast<__time_t>( )
/home/runner/work/msgpack-c/msgpack-c/test/msgpack_cpp11.cpp:1085:20: warning: implicit conversion changes signedness: 'unsigned long' to '__time_t' (aka 'long') [-Wsign-conversion]
timespec val1{ 0xffffffffUL, 0 };
~ ^~~~~~~~~~~~
Since we're trying to test how the maximum 32-bit value that fits in
timespec.tv_sec is handled, directly use the maximum 32-bit value for
the appropriate (un)signed type used for timespec.tv_sec.
We don't just cast to the value, as the compiler suggests, because that
would result in an extremely negative value.
2020-01-05 21:38:45 -05:00
Takatoshi Kondo
4a94f836a7
Merge pull request #828 from igor-sadchenko/patch-1
...
Fixed misprint in README.md
2019-12-28 15:18:59 +09:00
Igor Sadchenko
b36e548db2
Fixed misprint in README.md
2019-12-26 14:05:33 +03:00
Takatoshi Kondo
e6c276edf3
Merge pull request #827 from redboltz/fix_825_minimal
...
Fixed #825 .
2019-12-25 15:38:01 +09:00
Takatoshi Kondo
befc3cdd0c
Supressed C4309 on MSVC.
2019-12-25 14:59:40 +09:00
Takatoshi Kondo
2e2e93ba2e
Added compiler checking to pragma.
2019-12-25 14:39:57 +09:00
Takatoshi Kondo
3b2bb56243
Fixed #825 .
...
Added verbose option to windows CIs.
Added C compiler flag operation for MSVC.
Fixed invalid /WX flag matching on MSVC at test.
2019-12-25 14:24:24 +09:00
Takatoshi Kondo
9c4562382b
Merge pull request #824 from redboltz/migrate_to_gha
...
Migrate to gha
2019-12-25 12:16:39 +09:00
Takatoshi Kondo
08b0c88c21
Limited appveyor trigger event.
2019-12-25 10:39:26 +09:00
Takatoshi Kondo
d105f97ea0
Downgraded windows version.
2019-12-25 10:31:48 +09:00
Takatoshi Kondo
bd0665bed3
Removed travis.
2019-12-23 16:55:52 +09:00
Takatoshi Kondo
8dc865d92d
Added github actions.
...
Fixed enum qualifier.
2019-12-23 16:54:14 +09:00
Takatoshi Kondo
8085ab8721
Merge pull request #823 from redboltz/update_to_3.2.1
...
Updated the version to 3.2.1.
cpp-3.2.1
cpp-3
2019-12-10 14:36:16 +09:00
Takatoshi Kondo
b36e75a42e
Updated the version to 3.2.1.
2019-12-10 12:44:07 +09:00
Takatoshi Kondo
f17f8d79c4
Merge pull request #804 from herbrechtsmeier/cmake-remove-alias-from-package-config
...
cmake: Remove alias from package config
2019-12-10 12:33:18 +09:00
Takatoshi Kondo
f89f05b883
Merge pull request #821 from tsundre/fix-msgpack_checked_call
...
Correctly check return value of snprintf
2019-12-09 15:19:42 +09:00
Takatoshi Kondo
bd5f814cb2
Merge pull request #819 from devnexen/test_warning_fixes
...
c++11 unit tests silent warning fixes proposal.
2019-12-05 08:28:00 +09:00
Torleiv Sundre
bf6cc035c7
Fix tests for MSVC <= 2013
...
Use the _TRUNCATE flag for the count parameter to _snprintf_s. Without
this, the tests for MSVC <= 2013 failed on stack corruption!
2019-12-04 20:10:42 +01:00
Torleiv Sundre
a6bf728a5c
Correctly check return value of snprintf
...
In MSGPACK_CHECKED_CALL, the return value of snprintf is incorrectly
assumed to mean success if it is less than or equal to the buffer size.
The call should only be considered a success if the return value is less
than the buffer size.
This commit adds two unit tests that illustrates the issue and fixes the
issue, making the unit tests pass.
2019-12-04 14:20:12 +01:00
David Carlier
698a482b67
c++11 unit tests silent warning fixes proposal.
2019-11-16 13:36:37 +00:00
Takatoshi Kondo
fbf5b9d74c
Merge pull request #817 from BKPepe/add_include
...
Include <sys/uio.h> in Linux
2019-11-11 07:36:40 +09:00
Josef Schlehofer
65c35caab2
Include <sys/uio.h> in Linux
...
This is needed when cross-compiling for OpenWrt.
2019-11-10 11:40:13 +01:00
Takatoshi Kondo
ff9f14742b
Merge pull request #812 from redboltz/fix_805
...
Fixed #805 .
2019-09-24 20:10:25 +09:00