X-Git-Url: http://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=test%2Fdemo_terminfo.c;h=45cee3913f18e7a86f1151b24303e241a8701150;hb=91e462de27aeecd5b1c8965a6dba078f7a438003;hp=8ea0edf9cde735ff922d70a53f1290d0fe47bc5f;hpb=47d2fb4537d9ad5bb14f4810561a327930ca4280;p=ncurses.git diff --git a/test/demo_terminfo.c b/test/demo_terminfo.c index 8ea0edf9..45cee391 100644 --- a/test/demo_terminfo.c +++ b/test/demo_terminfo.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright 2019,2020 Thomas E. Dickey * + * Copyright 2019-2020,2021 Thomas E. Dickey * * Copyright 2009-2016,2017 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * @@ -30,7 +30,7 @@ /* * Author: Thomas E. Dickey * - * $Id: demo_terminfo.c,v 1.50 2020/02/02 23:34:34 tom Exp $ + * $Id: demo_terminfo.c,v 1.52 2021/03/20 16:07:29 tom Exp $ * * A simple demo of the terminfo interface. */ @@ -47,7 +47,7 @@ #endif #endif -static void failed(const char *) GCC_NORETURN; +static GCC_NORETURN void failed(const char *); static void failed(const char *msg) @@ -842,10 +842,12 @@ main(int argc, char *argv[]) case 's': s_opt = TRUE; break; -#ifdef NCURSES_VERSION case 'x': +#ifdef NCURSES_VERSION x_opt = TRUE; +#endif break; +#ifdef NCURSES_VERSION case 'y': y_opt = TRUE; x_opt = TRUE;