]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
[CI][linux-kernel] Enable -Wunused-const-variable and -Wunused-but-set-variable 2324/head
authorNick Terrell <terrelln@fb.com>
Wed, 23 Sep 2020 19:59:23 +0000 (12:59 -0700)
committerNick Terrell <terrelln@fb.com>
Wed, 23 Sep 2020 19:59:57 +0000 (12:59 -0700)
.github/workflows/linux-kernel.yml
contrib/linux-kernel/Makefile

index ab01768ae6a4a2fa26cb5ea8bb0c57a93f7e5a9a..35871ff08506a93f674cd079252f71f1537742a3 100644 (file)
@@ -10,4 +10,4 @@ jobs:
     steps:
     - uses: actions/checkout@v2
     - name: Create linux kernel library + build + test
-      run: make -C contrib/linux-kernel test
+      run: make -C contrib/linux-kernel test CFLAGS="-Werror -Wunused-const-variable -Wunused-but-set-variable"
index e9a7bb0dacf975af964f7fab862b1fca11a4ab8a..1997f9b81b3eefb7caf22711ed4f614463832179 100644 (file)
@@ -65,7 +65,7 @@ import: libzstd
 
 .PHONY: test
 test: libzstd
-       $(MAKE) -C test run-test CFLAGS="-O3" -j
+       $(MAKE) -C test run-test CFLAGS="-O3 $(CFLAGS)" -j
 
 .PHONY: clean
 clean: