diff --git a/cmd/zdb/Makefile.in b/cmd/zdb/Makefile.in index 85de94eeea..c53508a80c 100644 --- a/cmd/zdb/Makefile.in +++ b/cmd/zdb/Makefile.in @@ -206,8 +206,8 @@ target_vendor = @target_vendor@ # FIXME: consider removing this as soon as we reasonably can. # Expected defines not covered by zfs_config.h or spl_config.h -AM_FLAGS = -ggdb -O2 -std=c99 -Wall -Wstrict-prototypes -Wshadow \ - -Wno-switch -Wno-unused -Wno-missing-braces \ +AM_CFLAGS = -ggdb -O2 -std=c99 -Wall -Wstrict-prototypes -Wshadow \ + -Werror -Wno-switch -Wno-unused -Wno-missing-braces \ -Wno-unknown-pragmas -Wno-parentheses -Wno-uninitialized \ -fno-strict-aliasing -D_GNU_SOURCE -D__EXTENSIONS__ \ -D_POSIX_PTHREAD_SEMANTICS -D_FILE_OFFSET_BITS=64 \ diff --git a/cmd/zdump/Makefile.in b/cmd/zdump/Makefile.in index d1f761fbb6..915734a5a4 100644 --- a/cmd/zdump/Makefile.in +++ b/cmd/zdump/Makefile.in @@ -206,8 +206,8 @@ target_vendor = @target_vendor@ # FIXME: consider removing this as soon as we reasonably can. # Expected defines not covered by zfs_config.h or spl_config.h -AM_FLAGS = -ggdb -O2 -std=c99 -Wall -Wstrict-prototypes -Wshadow \ - -Wno-switch -Wno-unused -Wno-missing-braces \ +AM_CFLAGS = -ggdb -O2 -std=c99 -Wall -Wstrict-prototypes -Wshadow \ + -Werror -Wno-switch -Wno-unused -Wno-missing-braces \ -Wno-unknown-pragmas -Wno-parentheses -Wno-uninitialized \ -fno-strict-aliasing -D_GNU_SOURCE -D__EXTENSIONS__ \ -D_POSIX_PTHREAD_SEMANTICS -D_FILE_OFFSET_BITS=64 \ diff --git a/cmd/zfs/Makefile.in b/cmd/zfs/Makefile.in index 10959596fc..48c935fce4 100644 --- a/cmd/zfs/Makefile.in +++ b/cmd/zfs/Makefile.in @@ -206,8 +206,8 @@ target_vendor = @target_vendor@ # FIXME: consider removing this as soon as we reasonably can. # Expected defines not covered by zfs_config.h or spl_config.h -AM_FLAGS = -ggdb -O2 -std=c99 -Wall -Wstrict-prototypes -Wshadow \ - -Wno-switch -Wno-unused -Wno-missing-braces \ +AM_CFLAGS = -ggdb -O2 -std=c99 -Wall -Wstrict-prototypes -Wshadow \ + -Werror -Wno-switch -Wno-unused -Wno-missing-braces \ -Wno-unknown-pragmas -Wno-parentheses -Wno-uninitialized \ -fno-strict-aliasing -D_GNU_SOURCE -D__EXTENSIONS__ \ -D_POSIX_PTHREAD_SEMANTICS -D_FILE_OFFSET_BITS=64 \ diff --git a/cmd/zinject/Makefile.in b/cmd/zinject/Makefile.in index 7e4a41ccfc..caf58c3efe 100644 --- a/cmd/zinject/Makefile.in +++ b/cmd/zinject/Makefile.in @@ -206,8 +206,8 @@ target_vendor = @target_vendor@ # FIXME: consider removing this as soon as we reasonably can. # Expected defines not covered by zfs_config.h or spl_config.h -AM_FLAGS = -ggdb -O2 -std=c99 -Wall -Wstrict-prototypes -Wshadow \ - -Wno-switch -Wno-unused -Wno-missing-braces \ +AM_CFLAGS = -ggdb -O2 -std=c99 -Wall -Wstrict-prototypes -Wshadow \ + -Werror -Wno-switch -Wno-unused -Wno-missing-braces \ -Wno-unknown-pragmas -Wno-parentheses -Wno-uninitialized \ -fno-strict-aliasing -D_GNU_SOURCE -D__EXTENSIONS__ \ -D_POSIX_PTHREAD_SEMANTICS -D_FILE_OFFSET_BITS=64 \ diff --git a/cmd/zpios/Makefile.in b/cmd/zpios/Makefile.in index 14302b916f..0ee466f6cc 100644 --- a/cmd/zpios/Makefile.in +++ b/cmd/zpios/Makefile.in @@ -207,8 +207,8 @@ target_vendor = @target_vendor@ # FIXME: consider removing this as soon as we reasonably can. # Expected defines not covered by zfs_config.h or spl_config.h -AM_FLAGS = -ggdb -O2 -std=c99 -Wall -Wstrict-prototypes -Wshadow \ - -Wno-switch -Wno-unused -Wno-missing-braces \ +AM_CFLAGS = -ggdb -O2 -std=c99 -Wall -Wstrict-prototypes -Wshadow \ + -Werror -Wno-switch -Wno-unused -Wno-missing-braces \ -Wno-unknown-pragmas -Wno-parentheses -Wno-uninitialized \ -fno-strict-aliasing -D_GNU_SOURCE -D__EXTENSIONS__ \ -D_POSIX_PTHREAD_SEMANTICS -D_FILE_OFFSET_BITS=64 \ diff --git a/cmd/zpool/Makefile.in b/cmd/zpool/Makefile.in index 630c19dd7c..341ca04064 100644 --- a/cmd/zpool/Makefile.in +++ b/cmd/zpool/Makefile.in @@ -207,8 +207,8 @@ target_vendor = @target_vendor@ # FIXME: consider removing this as soon as we reasonably can. # Expected defines not covered by zfs_config.h or spl_config.h -AM_FLAGS = -ggdb -O2 -std=c99 -Wall -Wstrict-prototypes -Wshadow \ - -Wno-switch -Wno-unused -Wno-missing-braces \ +AM_CFLAGS = -ggdb -O2 -std=c99 -Wall -Wstrict-prototypes -Wshadow \ + -Werror -Wno-switch -Wno-unused -Wno-missing-braces \ -Wno-unknown-pragmas -Wno-parentheses -Wno-uninitialized \ -fno-strict-aliasing -D_GNU_SOURCE -D__EXTENSIONS__ \ -D_POSIX_PTHREAD_SEMANTICS -D_FILE_OFFSET_BITS=64 \ diff --git a/cmd/ztest/Makefile.in b/cmd/ztest/Makefile.in index 8f51d824b0..91345a8c2a 100644 --- a/cmd/ztest/Makefile.in +++ b/cmd/ztest/Makefile.in @@ -206,8 +206,8 @@ target_vendor = @target_vendor@ # FIXME: consider removing this as soon as we reasonably can. # Expected defines not covered by zfs_config.h or spl_config.h -AM_FLAGS = -ggdb -O2 -std=c99 -Wall -Wstrict-prototypes -Wshadow \ - -Wno-switch -Wno-unused -Wno-missing-braces \ +AM_CFLAGS = -ggdb -O2 -std=c99 -Wall -Wstrict-prototypes -Wshadow \ + -Werror -Wno-switch -Wno-unused -Wno-missing-braces \ -Wno-unknown-pragmas -Wno-parentheses -Wno-uninitialized \ -fno-strict-aliasing -D_GNU_SOURCE -D__EXTENSIONS__ \ -D_POSIX_PTHREAD_SEMANTICS -D_FILE_OFFSET_BITS=64 \ diff --git a/lib/libavl/Makefile.in b/lib/libavl/Makefile.in index a8c395f56f..18d7ad4626 100644 --- a/lib/libavl/Makefile.in +++ b/lib/libavl/Makefile.in @@ -211,8 +211,8 @@ target_vendor = @target_vendor@ # FIXME: consider removing this as soon as we reasonably can. # Expected defines not covered by zfs_config.h or spl_config.h -AM_FLAGS = -ggdb -O2 -std=c99 -Wall -Wstrict-prototypes -Wshadow \ - -Wno-switch -Wno-unused -Wno-missing-braces \ +AM_CFLAGS = -ggdb -O2 -std=c99 -Wall -Wstrict-prototypes -Wshadow \ + -Werror -Wno-switch -Wno-unused -Wno-missing-braces \ -Wno-unknown-pragmas -Wno-parentheses -Wno-uninitialized \ -fno-strict-aliasing -D_GNU_SOURCE -D__EXTENSIONS__ \ -D_POSIX_PTHREAD_SEMANTICS -D_FILE_OFFSET_BITS=64 \ diff --git a/lib/libnvpair/Makefile.in b/lib/libnvpair/Makefile.in index a132cf8b7e..a1f11ac27b 100644 --- a/lib/libnvpair/Makefile.in +++ b/lib/libnvpair/Makefile.in @@ -211,8 +211,8 @@ target_vendor = @target_vendor@ # FIXME: consider removing this as soon as we reasonably can. # Expected defines not covered by zfs_config.h or spl_config.h -AM_FLAGS = -ggdb -O2 -std=c99 -Wall -Wstrict-prototypes -Wshadow \ - -Wno-switch -Wno-unused -Wno-missing-braces \ +AM_CFLAGS = -ggdb -O2 -std=c99 -Wall -Wstrict-prototypes -Wshadow \ + -Werror -Wno-switch -Wno-unused -Wno-missing-braces \ -Wno-unknown-pragmas -Wno-parentheses -Wno-uninitialized \ -fno-strict-aliasing -D_GNU_SOURCE -D__EXTENSIONS__ \ -D_POSIX_PTHREAD_SEMANTICS -D_FILE_OFFSET_BITS=64 \ diff --git a/lib/libspl/Makefile.in b/lib/libspl/Makefile.in index 9359f1317a..e22c4a0004 100644 --- a/lib/libspl/Makefile.in +++ b/lib/libspl/Makefile.in @@ -212,8 +212,8 @@ target_vendor = @target_vendor@ # FIXME: consider removing this as soon as we reasonably can. # Expected defines not covered by zfs_config.h or spl_config.h -AM_FLAGS = -ggdb -O2 -std=c99 -Wall -Wstrict-prototypes -Wshadow \ - -Wno-switch -Wno-unused -Wno-missing-braces \ +AM_CFLAGS = -ggdb -O2 -std=c99 -Wall -Wstrict-prototypes -Wshadow \ + -Werror -Wno-switch -Wno-unused -Wno-missing-braces \ -Wno-unknown-pragmas -Wno-parentheses -Wno-uninitialized \ -fno-strict-aliasing -D_GNU_SOURCE -D__EXTENSIONS__ \ -D_POSIX_PTHREAD_SEMANTICS -D_FILE_OFFSET_BITS=64 \ diff --git a/lib/libuutil/Makefile.in b/lib/libuutil/Makefile.in index 28997f8939..eb0e3698f7 100644 --- a/lib/libuutil/Makefile.in +++ b/lib/libuutil/Makefile.in @@ -207,8 +207,8 @@ target_vendor = @target_vendor@ # FIXME: consider removing this as soon as we reasonably can. # Expected defines not covered by zfs_config.h or spl_config.h -AM_FLAGS = -ggdb -O2 -std=c99 -Wall -Wstrict-prototypes -Wshadow \ - -Wno-switch -Wno-unused -Wno-missing-braces \ +AM_CFLAGS = -ggdb -O2 -std=c99 -Wall -Wstrict-prototypes -Wshadow \ + -Werror -Wno-switch -Wno-unused -Wno-missing-braces \ -Wno-unknown-pragmas -Wno-parentheses -Wno-uninitialized \ -fno-strict-aliasing -D_GNU_SOURCE -D__EXTENSIONS__ \ -D_POSIX_PTHREAD_SEMANTICS -D_FILE_OFFSET_BITS=64 \ diff --git a/lib/libzcommon/Makefile.in b/lib/libzcommon/Makefile.in index 42fb800125..361326a51f 100644 --- a/lib/libzcommon/Makefile.in +++ b/lib/libzcommon/Makefile.in @@ -212,8 +212,8 @@ target_vendor = @target_vendor@ # FIXME: consider removing this as soon as we reasonably can. # Expected defines not covered by zfs_config.h or spl_config.h -AM_FLAGS = -ggdb -O2 -std=c99 -Wall -Wstrict-prototypes -Wshadow \ - -Wno-switch -Wno-unused -Wno-missing-braces \ +AM_CFLAGS = -ggdb -O2 -std=c99 -Wall -Wstrict-prototypes -Wshadow \ + -Werror -Wno-switch -Wno-unused -Wno-missing-braces \ -Wno-unknown-pragmas -Wno-parentheses -Wno-uninitialized \ -fno-strict-aliasing -D_GNU_SOURCE -D__EXTENSIONS__ \ -D_POSIX_PTHREAD_SEMANTICS -D_FILE_OFFSET_BITS=64 \ @@ -221,6 +221,7 @@ AM_FLAGS = -ggdb -O2 -std=c99 -Wall -Wstrict-prototypes -Wshadow \ -DTEXT_DOMAIN=\\\"zfs-linux-user\\\" DEFAULT_INCLUDES = \ -I${top_srcdir}/module/zcommon/include \ + -I${top_srcdir}/module/nvpair/include \ -I${top_srcdir}/lib/libspl/include lib_LTLIBRARIES = libzcommon.la diff --git a/lib/libzfs/Makefile.in b/lib/libzfs/Makefile.in index 77122b9804..0e734ab051 100644 --- a/lib/libzfs/Makefile.in +++ b/lib/libzfs/Makefile.in @@ -214,8 +214,8 @@ target_vendor = @target_vendor@ # FIXME: consider removing this as soon as we reasonably can. # Expected defines not covered by zfs_config.h or spl_config.h -AM_FLAGS = -ggdb -O2 -std=c99 -Wall -Wstrict-prototypes -Wshadow \ - -Wno-switch -Wno-unused -Wno-missing-braces \ +AM_CFLAGS = -ggdb -O2 -std=c99 -Wall -Wstrict-prototypes -Wshadow \ + -Werror -Wno-switch -Wno-unused -Wno-missing-braces \ -Wno-unknown-pragmas -Wno-parentheses -Wno-uninitialized \ -fno-strict-aliasing -D_GNU_SOURCE -D__EXTENSIONS__ \ -D_POSIX_PTHREAD_SEMANTICS -D_FILE_OFFSET_BITS=64 \ diff --git a/lib/libzpool/Makefile.in b/lib/libzpool/Makefile.in index 2b038ec112..557c0e60fa 100644 --- a/lib/libzpool/Makefile.in +++ b/lib/libzpool/Makefile.in @@ -211,8 +211,8 @@ target_vendor = @target_vendor@ # FIXME: consider removing this as soon as we reasonably can. # Expected defines not covered by zfs_config.h or spl_config.h -AM_FLAGS = -ggdb -O2 -std=c99 -Wall -Wstrict-prototypes -Wshadow \ - -Wno-switch -Wno-unused -Wno-missing-braces \ +AM_CFLAGS = -ggdb -O2 -std=c99 -Wall -Wstrict-prototypes -Wshadow \ + -Werror -Wno-switch -Wno-unused -Wno-missing-braces \ -Wno-unknown-pragmas -Wno-parentheses -Wno-uninitialized \ -fno-strict-aliasing -D_GNU_SOURCE -D__EXTENSIONS__ \ -D_POSIX_PTHREAD_SEMANTICS -D_FILE_OFFSET_BITS=64 \