~emersion/mrsh-dev

Add -Wno-unused-result v1 PROPOSED

Drew DeVault: 1
 Add -Wno-unused-result

 2 files changed, 2 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~emersion/mrsh-dev/patches/8439/mbox | git am -3
Learn more about email & git

[PATCH] Add -Wno-unused-result Export this patch

---
 configure   | 2 +-
 meson.build | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/configure b/configure
index 11f4c7e..19a0cc5 100755
--- a/configure
+++ b/configure
@@ -184,7 +184,7 @@ for flag in \
 	-Wfloat-equal -Wstrict-prototypes -Wredundant-decls \
 	-Wimplicit-fallthrough=2 -Wendif-labels -Wstrict-aliasing=2 -Woverflow \
 	-Wformat=2 -Wno-missing-braces -Wno-missing-field-initializers \
-	-Wno-unused-parameter
+	-Wno-unused-parameter -Wno-unused-result
 do
 	printf "Checking for $flag... "
 	if test_cflags "$flag"
diff --git a/meson.build b/meson.build
index 54c4d61..62b612d 100644
--- a/meson.build
+++ b/meson.build
@@ -32,6 +32,7 @@ add_project_arguments(cc.get_supported_arguments([
 	'-Wno-missing-braces',
 	'-Wno-missing-field-initializers',
 	'-Wno-unused-parameter',
+	'-Wno-unused-result', # fuck you glibc, and gcc, and the little dog, too
 ]), language: 'c')
 
 if get_option('readline-provider') == 'readline'
-- 
2.23.0
Pushed:

To git.sr.ht:~emersion/mrsh
   c390c40573dd..2f5dcdd7139f  master -> master

Thanks!
View this thread in the archives