Gcc5 failed to build uml. Update codes to test __GNUC__ with 5 will be happier.
Signed-off-by: Firo Yang <fir...@gmail.com> --- arch/um/include/shared/init.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/um/include/shared/init.h b/arch/um/include/shared/init.h index b3906f8..3af7098 100644 --- a/arch/um/include/shared/init.h +++ b/arch/um/include/shared/init.h @@ -54,7 +54,7 @@ typedef void (*exitcall_t)(void); #endif #else -#if __GNUC__ == 4 +#if __GNUC__ == 4 || __GNUC__ == 5 # define __used __attribute__((__used__)) #endif #endif -- 2.4.3 ------------------------------------------------------------------------------ _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user