Re: [PATCH] sys_time: avoid compiler warnings

2010-04-15 Thread Simon Josefsson
Eric Blake ebl...@redhat.com writes: ./../gl/sys/time.h:353: error: redundant redeclaration of '_gl_cxxalias_dummy' [-Wredundant-decls] ./../gl/string.h:1103: note: previous declaration of '_gl_cxxalias_dummy' was here I have some non-default warnings enabled. Maybe we could protect

[PATCH] sys_time: avoid compiler warnings

2010-03-31 Thread Eric Blake
sys/time uses #if/#else/#endif, and is therefore not subject to the gcc optimization. The #pragma GCC system_header must occur up front. * lib/sys_time.in.h (includes): Ensure gcc pragma is unconditional, fixing regression from 2010-03-29. Reported by Simon Josefsson. Signed-off-by: Eric Blake