Behan Webster writes:
> clang warns if inline functions aren't used. By making them __maybe_unused
> there is no warning for either gcc nor clang.
Are you sure about that? I've never seen such behaviour from clang (or
any other compiler), and it would truly be idiotic. If clang has taken
to
Behan Webster beh...@converseincode.com writes:
clang warns if inline functions aren't used. By making them __maybe_unused
there is no warning for either gcc nor clang.
Are you sure about that? I've never seen such behaviour from clang (or
any other compiler), and it would truly be idiotic.
clang warns if inline functions aren't used. By making them __maybe_unused
there is no warning for either gcc nor clang.
Signed-off-by: Behan Webster
Suggested-by: Arnd Bergmann
Cc: Arnd Bergmann
Cc: "Christopher Li"
---
include/linux/compiler-gcc.h | 12 ++--
1 file changed, 6
clang warns if inline functions aren't used. By making them __maybe_unused
there is no warning for either gcc nor clang.
Signed-off-by: Behan Webster beh...@converseincode.com
Suggested-by: Arnd Bergmann a...@arndb.de
Cc: Arnd Bergmann a...@arndb.de
Cc: Christopher Li spa...@chrisli.org
---
4 matches
Mail list logo