From 16eafe418dcf57e2039df30a17b240e48caaab42 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 16 Aug 2022 15:57:55 +0100 Subject: [PATCH] fish/tilde.c: Remove ignore -Wanalyzer-null-argument Added in 2021 as a workaround for GCC 11 and since fixed upstream. On macOS (clang): tilde.c:43:32: error: unknown warning group '-Wanalyzer-null-argument', ignored [-Werror,-Wunknown-warning-option] ^ tilde.c:86:32: error: unknown warning group '-Wanalyzer-null-argument', ignored [-Werror,-Wunknown-warning-option] ^ 2 errors generated. (cherry picked from commit 39d66abc04d497098cc5fefb9ea921708edf53e1) --- fish/tilde.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/fish/tilde.c b/fish/tilde.c index 0d4ffb10c..0c15d18d5 100644 --- a/fish/tilde.c +++ b/fish/tilde.c @@ -39,8 +39,6 @@ static char *expand_home (char *orig, const char *append); static const char *find_home_for_username (const char *, size_t); static const char *find_home_for_current_user (void); -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wanalyzer-null-argument" /** * This is called from the script loop if we find a candidate for * C<~username> (tilde-expansion). @@ -80,10 +78,7 @@ try_tilde_expansion (char *str) /* No match, return the original string. */ return str; } -#pragma GCC diagnostic pop -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wanalyzer-null-argument" /** * Return C<$HOME> + append string. */ @@ -115,7 +110,6 @@ expand_home (char *orig, const char *append) return str; } -#pragma GCC diagnostic pop /** * Lookup C (of length C), return home directory if