diff --git a/include/nuttx/cache.h b/include/nuttx/cache.h index 030b6d7e3f7..ef5e477b6e0 100644 --- a/include/nuttx/cache.h +++ b/include/nuttx/cache.h @@ -342,7 +342,7 @@ void up_disable_dcache(void); #ifdef CONFIG_ARCH_DCACHE void up_invalidate_dcache(uintptr_t start, uintptr_t end); #else -# define up_invalidate_dcache(start, end) +# define up_invalidate_dcache(start, end) ((void)(start), (void)(end)) #endif /**************************************************************************** @@ -384,7 +384,7 @@ void up_invalidate_dcache_all(void); #ifdef CONFIG_ARCH_DCACHE void up_clean_dcache(uintptr_t start, uintptr_t end); #else -# define up_clean_dcache(start, end) +# define up_clean_dcache(start, end) ((void)(start), (void)(end)) #endif /****************************************************************************