summaryrefslogtreecommitdiff
path: root/Cryptlib/OpenSSL
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2021-03-11 11:40:46 -0500
committerJavier Martinez Canillas <javier@dowhile0.org>2021-03-12 10:15:01 +0100
commitdf74fff124a84428c9717a89ff00ca0931d09c52 (patch)
tree9100f34ddf891a5ffdc8bfddf3c63e3c580060b5 /Cryptlib/OpenSSL
parent6ebae16cbb6856f80e891b710d4f76b49ff48c6d (diff)
downloadefi-boot-shim-df74fff124a84428c9717a89ff00ca0931d09c52.tar.gz
efi-boot-shim-df74fff124a84428c9717a89ff00ca0931d09c52.zip
openssl: nerf some -W flags for clang.
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'Cryptlib/OpenSSL')
-rw-r--r--Cryptlib/OpenSSL/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Cryptlib/OpenSSL/Makefile b/Cryptlib/OpenSSL/Makefile
index 2b96c385..795f471d 100644
--- a/Cryptlib/OpenSSL/Makefile
+++ b/Cryptlib/OpenSSL/Makefile
@@ -22,8 +22,8 @@ FEATUREFLAGS += -nostdinc
WARNFLAGS += -Wno-empty-body \
-Wno-implicit-fallthrough \
- -Wno-old-style-declaration \
- -Wno-unused-but-set-variable \
+ $(if $(findstring gcc,$(CC)),-Wno-old-style-declaration) \
+ $(if $(findstring gcc,$(CC)),-Wno-unused-but-set-variable) \
-Wno-unused-parameter
CFLAGS = $(FEATUREFLAGS) \