Re: [PATCH wayland 5/6] tests: Overly elaborate compiler warning workaround

2018-08-30 Thread Daniel Stone
Hi Emil, On Wed, 29 Aug 2018 at 17:33, Emil Velikov wrote: > On 29 August 2018 at 07:17, Daniel Stone wrote: > > -static const struct sockaddr_un example_sockaddr_un; > > +static struct sockaddr_un example_sockaddr_un; > > > > #define TOO_LONG (1 + sizeof example_sockaddr_un.sun_path) > > > > @

Re: [PATCH wayland 5/6] tests: Overly elaborate compiler warning workaround

2018-08-29 Thread Emil Velikov
Hi Dan, On 29 August 2018 at 07:17, Daniel Stone wrote: > Clang will rightly point out that example_sockaddr_un in socket-test > will get discarded from the compilation unit as it is completely unused. > Put in a couple of lines which of no value other than stopping Clang > from complaining. > >

[PATCH wayland 5/6] tests: Overly elaborate compiler warning workaround

2018-08-28 Thread Daniel Stone
Clang will rightly point out that example_sockaddr_un in socket-test will get discarded from the compilation unit as it is completely unused. Put in a couple of lines which of no value other than stopping Clang from complaining. Signed-off-by: Daniel Stone --- tests/socket-test.c | 7 ++- 1