Skip to content

Commit

Permalink
more -Wno-alloc-size
Browse files Browse the repository at this point in the history
configure and cmake. failed on mingw.
  • Loading branch information
rurban committed Jul 9, 2024
1 parent 2e9d016 commit d41f9d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ else()
add_compile_options(-Wno-error=array-bounds)
endif()
if (HAVE_C_WALLOC_SIZE)
add_compile_options(-Wno-error=alloc-size)
add_compile_options(-Wno-alloc-size)
endif()
endif()
endif()
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ then
else
AX_COMPILER_FLAGS([WARN_CFLAGS],[AM_LDFLAGS],[$ax_is_release],
[-fwrapv -fno-common -fvisibility=hidden -fno-strict-aliasing \
-fno-delete-null-pointer-checks])
-fno-delete-null-pointer-checks -Wno-alloc-size])
fi
dnl if test x$ax_cv_check_cflags__Wunused_but_set_variable = xyes; then
dnl WARN_CFLAGS="$WARN_CFLAGS -Wno-unused-but-set-variable"
Expand Down

0 comments on commit d41f9d5

Please sign in to comment.