tools: move function attributes to the header file
authorClemens Gruber <clemens.gruber@pqgruber.com>
Tue, 20 Feb 2018 16:57:32 +0000 (17:57 +0100)
committerBartosz Golaszewski <bartekgola@gmail.com>
Tue, 20 Feb 2018 21:18:43 +0000 (22:18 +0100)
commita5ee3d7c4fe58dc838cdf3cfb5fabde1ddf2c910
treebd34f9ff7fbf70f8b7a72f04c2963b95d637f7ed
parent0d4b0e51c6801bf3bf606299acb8ce7b2400bfd5
tools: move function attributes to the header file

The attributes must be located next to function declarations in the
header file. Otherwise, the NORETURN attribute seems to have no effect
and GCC emits several Wimplicit-fallthrough warnings when compiling
libgpiod. This patch fixes those warnings.

Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com>
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
src/tools/tools-common.c
src/tools/tools-common.h