git: backgammon(6): Prevent LTO seeing details for now.

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Wed Oct 19 08:32:53 PDT 2016


commit c5e1790f6b9f306743884f37b2dd1f67b27c9ab8
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Mon Oct 10 12:43:25 2016 +0300

    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

Summary of changes:
 games/backgammon/backgammon/Makefile  | 4 ++++
 games/backgammon/teachgammon/Makefile | 4 ++++
 2 files changed, 8 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c5e1790f6b9f306743884f37b2dd1f67b27c9ab8


-- 
DragonFly BSD source repository



More information about the Commits mailing list