Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: allow multiple completion for gcc -Wsuggest-attribute
- X-seq: zsh-workers 43812
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxx>
- Subject: PATCH: allow multiple completion for gcc -Wsuggest-attribute
- Date: Sun, 11 Nov 2018 02:44:10 +0100
- Authentication-results: amavisd4.gkg.net (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.co.uk
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1541900653; bh=9MSjkGmyic2fDHt4BmF06eX+DguhhOfTJdauS+k7k44=; h=From:To:Subject:Date:From:Subject; b=X0vWH/kubcOGvMISpJt/C3ItL2bEXeWTXqhnaVncM1YG0Hx43eIdwhXhjlnKrQSP/YslzszR9OA+4csSb5mmWISftPgKlsPRcT8sgqCrDxRkAmr/s0XuC/tkNgVhO7DULc0G9BhxWOhjnh0DbGnFh3QwCyt+kDpUjByvw9Z2w3rW08ZZR6vh15vVnHj6jRofwp5Xt+v4DUMzzSyAE8bHAYc7s4aQYkWldDDl1FxnqeQeShnQAAAyR1XWU3BohIr1z6iCpJ0jQW0T+5wL9WgD3VyekmbDeaGCG0xFIgP3GTmBmTzTkVw+gDNkExIE0q1yjnbN+OTiuu5A5NOIah0j9w==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
gcc allows the -Wsuggest-attribute option to be repeated because it can
be used with each of the four possible values.
Oliver
diff --git a/Completion/Unix/Command/_gcc b/Completion/Unix/Command/_gcc
index 8687adc6e..1052967c7 100644
--- a/Completion/Unix/Command/_gcc
+++ b/Completion/Unix/Command/_gcc
@@ -628,7 +628,7 @@ args+=(
'-Wstrict-selector-match[Warn if type signatures of candidate methods do not match exactly]'
'-Wstringop-overflow[Warn about buffer overflow in string manipulation functions like memcpy and strcpy. Same as -Wstringop-overflow=]'
'-Wsubobject-linkage[Warn if a class type has a base or a field whose type uses the anonymous namespace or depends on a type with no linkage]'
- '-Wsuggest-attribute=-[Warn about functions which might be candidates for __attribute__((const))]:const:(pure const noreturn format)'
+ '*-Wsuggest-attribute=-[warn about functions which might be candidates for __attribute__((const))]:const:(pure const noreturn format)'
'-Wsuggest-final-methods[Warn about C++ virtual methods where adding final keyword would improve code quality]'
'-Wsuggest-final-types[Warn about C++ polymorphic types where adding final keyword would improve code quality]'
'-Wsuggest-override[Suggest that the override keyword be used when the declaration of a virtual function overrides another]'
Messages sorted by:
Reverse Date,
Date,
Thread,
Author