Skip to content

Commit aac544c

Browse files
lucvooojeda
authored andcommitted
Compiler Attributes: remove comment about sparse not supporting __has_attribute
Sparse supports __has_attribute() since 2018-08-31, so the comment is not true anymore but more importantly is rather confusing. So remove it. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> Signed-off-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
1 parent d012a71 commit aac544c

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

include/linux/compiler_attributes.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@
2424
* __has_attribute is supported on gcc >= 5, clang >= 2.9 and icc >= 17.
2525
* In the meantime, to support 4.6 <= gcc < 5, we implement __has_attribute
2626
* by hand.
27-
*
28-
* sparse does not support __has_attribute (yet) and defines __GNUC_MINOR__
29-
* depending on the compiler used to build it; however, these attributes have
30-
* no semantic effects for sparse, so it does not matter. Also note that,
31-
* in order to avoid sparse's warnings, even the unsupported ones must be
32-
* defined to 0.
3327
*/
3428
#ifndef __has_attribute
3529
# define __has_attribute(x) __GCC4_has_attribute_##x

0 commit comments

Comments
 (0)