Skip to content

Commit

Permalink
The older gcc in CentOS 6 doesn't understand some bits of zstd
Browse files Browse the repository at this point in the history
Disable warnings for use-without-initialize in the contributed code

The libzpool version of this could use some magic to only apply to
the zstandard code

Signed-off-by: Allan Jude <[email protected]>
  • Loading branch information
allanjude committed Jul 23, 2019
1 parent 93f51ba commit 3f7f843
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/libzpool/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ AM_CFLAGS += $(NO_UNUSED_BUT_SET_VARIABLE)
# Includes kernel code generate warnings for large stack frames
AM_CFLAGS += $(FRAME_LARGER_THAN)

AM_CFLAGS += -DLIB_ZPOOL_BUILD -Wframe-larger-than=20480
AM_CFLAGS += -DLIB_ZPOOL_BUILD -Wframe-larger-than=20480 -Wno-uninitialized

DEFAULT_INCLUDES += \
-I$(top_srcdir)/include \
Expand Down
2 changes: 1 addition & 1 deletion module/zstd_zfs/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ obj-$(CONFIG_ZFS) := $(MODULE).o

asflags-y += $(ZFS_MODULE_CFLAGS)
ccflags-y := $(ZFS_MODULE_CFLAGS) $(ZFS_MODULE_CPPFLAGS)
ccflags-y += -Wframe-larger-than=20480
ccflags-y += -Wframe-larger-than=20480 -Wno-uninitialized

$(MODULE)-objs += zstd/common/zstd_common.o
$(MODULE)-objs += zstd/common/fse_decompress.o
Expand Down

0 comments on commit 3f7f843

Please sign in to comment.