summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
authorOliver Kiddle <okiddle@yahoo.co.uk>2018-11-12 10:32:15 +0100
committerOliver Kiddle <okiddle@yahoo.co.uk>2018-11-12 10:32:15 +0100
commit8d2622ecba2d3b967e29d25cddaa66f08838aaaa (patch)
tree8caa2d5475cadc6ec5d552f81c2e37a5dc0ce836 /Completion/Unix
parentd50e204b0c4c10164a711bf640500e46987de9c3 (diff)
downloadzsh-8d2622ecba2d3b967e29d25cddaa66f08838aaaa.tar.gz
zsh-8d2622ecba2d3b967e29d25cddaa66f08838aaaa.tar.xz
zsh-8d2622ecba2d3b967e29d25cddaa66f08838aaaa.zip
43812: allow repeats of gcc's -Wsuggest-attribute option
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Command/_gcc2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_gcc b/Completion/Unix/Command/_gcc
index 5b97b8c30..9de0b79b1 100644
--- a/Completion/Unix/Command/_gcc
+++ b/Completion/Unix/Command/_gcc
@@ -646,7 +646,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 that might be candidates for attributes]:attribute:(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]'