backgammon(6): Prevent LTO seeing details for now.
authorzrj <rimvydas.jasinskas@gmail.com>
Mon, 10 Oct 2016 09:43:25 +0000 (12:43 +0300)
committerzrj <zrj@dragonflybsd.org>
Wed, 19 Oct 2016 15:45:46 +0000 (18:45 +0300)
commitc5e1790f6b9f306743884f37b2dd1f67b27c9ab8
treeab1859ccda9afede2a55cd81ad39552f7775807b
parent6c9f93de25eb1e8ea3c6129525a54b68481d837b
backgammon(6): Prevent LTO seeing details for now.

init.c should contain "back.h" for types (TBI later).
-flto gives lots of error: type of 'args' does not match original declaration [-Werror]

/usr/src/games/backgammon/backgammon/../common_source/back.h
 extern char *args[16]; /* args passed to teachgammon and back */
/usr/src/games/backgammon/backgammon/../common_source/init.c
 char args[100];

/usr/src/games/backgammon/backgammon/../common_source/back.h
 extern int  old; /* original tty status */
/usr/src/games/backgammon/backgammon/../common_source/init.c
 struct termios tty, old, noech, raw;

/usr/src/games/backgammon/backgammon/../common_source/back.h
 extern int  raw; /* raw tty status, no echo */
/usr/src/games/backgammon/backgammon/../common_source/init.c
 struct termios tty, old, noech, raw;

/usr/src/games/backgammon/backgammon/../common_source/back.h
 extern int  noech; /* original tty status without echo */
/usr/src/games/backgammon/backgammon/../common_source/init.c
 struct termios tty, old, noech, raw;
lto1: all warnings being treated as errors
games/backgammon/backgammon/Makefile
games/backgammon/teachgammon/Makefile