Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid warning C4295 when using Visual C++ and maintainer warnings are enabled. #1075

Merged
merged 1 commit into from Dec 19, 2021

Conversation

mtl1979
Copy link
Collaborator

@mtl1979 mtl1979 commented Dec 15, 2021

C:\build\git\zlib-ng\test\deflate_quick_bi_valid.c(24,1): warning C4295: 'next_in': array is too small to include a terminating null character

@codecov
Copy link

codecov bot commented Dec 15, 2021

Codecov Report

Merging #1075 (cc577ff) into develop (5b0ffa6) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #1075   +/-   ##
========================================
  Coverage    81.48%   81.48%           
========================================
  Files           87       87           
  Lines         8838     8838           
  Branches      1427     1420    -7     
========================================
  Hits          7202     7202           
  Misses        1079     1079           
  Partials       557      557           
Flag Coverage Δ
macos_clang 69.47% <100.00%> (ø)
macos_gcc 68.01% <100.00%> (ø)
ubuntu_clang 74.24% <100.00%> (ø)
ubuntu_clang_debug 74.39% <100.00%> (ø)
ubuntu_clang_inflate_allow_invalid_dist 74.10% <100.00%> (ø)
ubuntu_clang_inflate_strict 74.15% <100.00%> (ø)
ubuntu_clang_mmap 74.21% <100.00%> (ø)
ubuntu_clang_msan 74.24% <100.00%> (ø)
ubuntu_clang_pigz 35.12% <ø> (ø)
ubuntu_clang_pigz_no_optim 39.62% <ø> (ø)
ubuntu_clang_pigz_no_threads 34.63% <ø> (ø)
ubuntu_clang_reduced_mem 74.38% <100.00%> (ø)
ubuntu_gcc 73.66% <100.00%> (ø)
ubuntu_gcc_aarch64 75.53% <100.00%> (ø)
ubuntu_gcc_aarch64_compat_no_opt 73.23% <100.00%> (ø)
ubuntu_gcc_aarch64_no_acle 74.98% <100.00%> (ø)
ubuntu_gcc_aarch64_no_neon 75.09% <100.00%> (ø)
ubuntu_gcc_armhf 75.51% <100.00%> (ø)
ubuntu_gcc_armhf_compat_no_opt 73.19% <100.00%> (ø)
ubuntu_gcc_armhf_no_acle 75.78% <100.00%> (ø)
ubuntu_gcc_armhf_no_neon 75.86% <100.00%> (ø)
ubuntu_gcc_armsf 75.52% <100.00%> (ø)
ubuntu_gcc_armsf_compat_no_opt 73.19% <100.00%> (ø)
ubuntu_gcc_compat_no_opt 74.18% <100.00%> (ø)
ubuntu_gcc_compat_sprefix 73.55% <100.00%> (ø)
ubuntu_gcc_mingw_i686 0.00% <0.00%> (ø)
ubuntu_gcc_mingw_x86_64 0.00% <0.00%> (ø)
ubuntu_gcc_no_avx2 75.70% <100.00%> (ø)
ubuntu_gcc_no_ctz 76.22% <100.00%> (ø)
ubuntu_gcc_no_ctzll 75.90% <100.00%> (ø)
ubuntu_gcc_no_pclmulqdq 72.33% <100.00%> (ø)
ubuntu_gcc_no_sse2 74.74% <100.00%> (ø)
ubuntu_gcc_no_sse4 72.66% <100.00%> (ø)
ubuntu_gcc_o3 72.87% <100.00%> (ø)
ubuntu_gcc_osb 75.91% <100.00%> (ø)
ubuntu_gcc_pigz 35.30% <ø> (+0.02%) ⬆️
ubuntu_gcc_pigz_aarch64 37.09% <ø> (-0.07%) ⬇️
ubuntu_gcc_ppc 73.25% <100.00%> (ø)
ubuntu_gcc_ppc64 76.65% <100.00%> (ø)
ubuntu_gcc_ppc64le 75.13% <100.00%> (ø)
ubuntu_gcc_ppc_no_power8 75.94% <100.00%> (ø)
ubuntu_gcc_s390x 78.06% <100.00%> (ø)
ubuntu_gcc_sparc64 77.20% <100.00%> (ø)
ubuntu_gcc_sprefix 73.35% <100.00%> (ø)
win64_gcc ∅ <ø> (∅)
win64_gcc_compat_no_opt ∅ <ø> (∅)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
test/deflate_quick_bi_valid.c 55.55% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5b0ffa6...cc577ff. Read the comment docs.

@mtl1979 mtl1979 mentioned this pull request Dec 15, 2021
test/deflate_quick_bi_valid.c Outdated Show resolved Hide resolved
@nmoinvaz nmoinvaz added the cleanup Improving maintainability or removing code. label Dec 17, 2021
@Dead2 Dead2 merged commit 3b2d34a into zlib-ng:develop Dec 19, 2021
Dead2 added a commit that referenced this pull request Dec 20, 2021
 - Fix hangs on macOS #1031
 - Fix minideflate write buffers being overwritten #1060
 - Fix deflateBound and compressBound returning too small size estimates #1071
 - Fix build problems when building outside of source dir #1049
 - Fix build problems on arm2-7 #1030
 - Fixed some compile warnings #1020 #1036 #1037 #1048
 - Improved posix memalign support #888
 - Improvements to testing #637 #1026 #1032 #1035 #1051 #1056 #1063 #1067
 - Improvements for integration into other projects #1022 #1042
 - Code style fixes #637 #1040 #1050 #1075
Dead2 added a commit that referenced this pull request Dec 20, 2021
 - Fix hangs on macOS #1031
 - Fix minideflate write buffers being overwritten #1060
 - Fix deflateBound and compressBound returning too small size estimates #1071
 - Fix build problems when building outside of source dir #1049
 - Fix build problems on arm2-7 #1030
 - Fixed some compile warnings #1020 #1036 #1037 #1048
 - Improved posix memalign support #888
 - Improvements to testing #637 #1026 #1032 #1035 #1051 #1056 #1063 #1067
 - Improvements for integration into other projects #1022 #1042
 - Code style fixes #637 #1040 #1050 #1075
Dead2 added a commit that referenced this pull request Dec 20, 2021
 - Fix hangs on macOS #1031
 - Fix minideflate write buffers being overwritten #1060
 - Fix deflateBound and compressBound returning too small size estimates #1071
 - Fix build problems when building outside of source dir #1049
 - Fix build problems on arm2-7 #1030
 - Fixed some compile warnings #1020 #1036 #1037 #1048
 - Improved posix memalign support #888
 - Improvements to testing #637 #1026 #1032 #1035 #1051 #1056 #1063 #1067
 - Improvements for integration into other projects #1022 #1042
 - Code style fixes #637 #1040 #1050 #1075
Dead2 added a commit that referenced this pull request Dec 20, 2021
 - Fix hangs on macOS #1031
 - Fix minideflate write buffers being overwritten #1060
 - Fix deflateBound and compressBound returning too small size estimates #1049 #1071
 - Fix incorrect function declaration warning #1080
 - Fix build problems when building outside of source dir #1049
 - Fix build problems on arm2-7 #1030
 - Fixed some compile warnings #1020 #1036 #1037 #1048
 - Improved posix memalign support #888
 - Improvements to testing #637 #1026 #1032 #1035 #1049 #1051 #1056 #1063 #1067
 - Improvements for integration into other projects #1022 #1042
 - Code style fixes #637 #1040 #1050 #1075
Dead2 added a commit that referenced this pull request Dec 20, 2021
 - Fix hangs on macOS #1031
 - Fix minideflate write buffers being overwritten #1060
 - Fix deflateBound and compressBound returning too small size estimates #1049 #1071
 - Fix incorrect function declaration warning #1080
 - Fix build problems when building outside of source dir #1049
 - Fix build problems on arm2-7 #1030
 - Fixed some compile warnings #1020 #1036 #1037 #1048
 - Improved posix memalign support #888
 - Improvements to testing #637 #1026 #1032 #1035 #1049 #1051 #1056 #1063 #1067 #1079
 - Improvements for integration into other projects #1022 #1042
 - Code style fixes #637 #1040 #1050 #1075
Dead2 added a commit that referenced this pull request Dec 24, 2021
 - Fix hangs on macOS #1031
 - Fix minideflate write buffers being overwritten #1060
 - Fix deflateBound and compressBound returning too small size estimates #1049 #1071
 - Fix incorrect function declaration warning #1080
 - Fix build problems when building outside of source dir #1049
 - Fix build problems on arm2-7 #1030
 - Fixed some compile warnings #1020 #1036 #1037 #1048
 - Improved posix memalign support #888
 - Improvements to testing #637 #1026 #1032 #1035 #1049 #1051 #1056 #1063 #1067 #1079
 - Improvements for integration into other projects #1022 #1042
 - Code style fixes #637 #1040 #1050 #1075
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Improving maintainability or removing code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants