This website requires JavaScript.
Explore
Help
Sign in
fdo-mirrors
/
libinput
Watch
1
Star
0
Fork
You've already forked libinput
0
mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced
2025-12-21 00:20:05 +01:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
Actions
bd6fd8bb92
libinput
/
test
/
build-pedantic.c
9 lines
86 B
C
Raw
Normal View
History
Unescape
Escape
test: add a build-test for -pedantic We don't build with -pedantic, but a caller may try to actually stick to the c99 standard, so let's make sure our public header doesn't cause any issues there. Likewise, make sure that our header compiles with GNU C90. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2013-12-06 14:18:39 +10:00
#
include
<libinput.h>
/* This is a build-test only */
int
build-pedantic: use main(void) Main has unused parameters argc and argv. Since they are unused and C 99 allows to prototype main as 'int main(void)', remove them and replace by void. It fixes build when unused parameters are treated as errors. Signed-off-by: Marek Chalupa <mchqwerty@gmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2015-01-09 10:34:46 +01:00
main
(
void
)
{
test: add a build-test for -pedantic We don't build with -pedantic, but a caller may try to actually stick to the c99 standard, so let's make sure our public header doesn't cause any issues there. Likewise, make sure that our header compiles with GNU C90. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2013-12-06 14:18:39 +10:00
return
0
;
}
Reference in a new issue
Copy permalink