kern: build with -Wextra
This commit is contained in:
@@ -66,4 +66,19 @@
|
||||
|
||||
#define AMS_CURRENT_FUNCTION_NAME __FUNCTION__
|
||||
|
||||
#if defined(__cplusplus)
|
||||
|
||||
namespace ams::impl {
|
||||
|
||||
template<typename... ArgTypes>
|
||||
constexpr ALWAYS_INLINE void UnusedImpl(ArgTypes &&... args) {
|
||||
(static_cast<void>(args), ...);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#define AMS_UNUSED(...) ::ams::impl::UnusedImpl(__VA_ARGS__)
|
||||
|
||||
#define AMS_INFINITE_LOOP() do { __asm__ __volatile__("" ::: "memory"); } while (1)
|
||||
|
||||
Reference in New Issue
Block a user