X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Ftest_opaque.c;h=8e19a8c29cc403ab143d46185152774c8fa6f82f;hp=f1ab78cf1fa62107bf0905e9b414971c7ab8c547;hb=cf6a62567b2365c8678b7d561845bdbd1739e5da;hpb=7c4bc0fa99a1be37a14aa19a5943a549570954c4 diff --git a/test/test_opaque.c b/test/test_opaque.c index f1ab78cf..8e19a8c2 100644 --- a/test/test_opaque.c +++ b/test/test_opaque.c @@ -1,5 +1,6 @@ /**************************************************************************** - * Copyright (c) 2007,2008 Free Software Foundation, Inc. * + * Copyright 2020 Thomas E. Dickey * + * Copyright 2007-2008,2009 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -26,7 +27,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: test_opaque.c,v 1.7 2008/07/05 23:18:40 tom Exp $ + * $Id: test_opaque.c,v 1.10 2020/02/02 23:34:34 tom Exp $ * * Author: Thomas E Dickey * @@ -185,10 +186,10 @@ show_keyword(WINDOW *stswin, int cell, int active, const char *name) { to_keyword(stswin, cell); if (active == cell) - wstandout(stswin); + (void) wstandout(stswin); wprintw(stswin, "%s:", name); if (active == cell) - wstandend(stswin); + (void) wstandend(stswin); } /* *INDENT-OFF* */ static struct { @@ -231,7 +232,7 @@ show_opaque(WINDOW *stswin, WINDOW *txtwin, bool before, int active) show_keyword(stswin, n, active, "wgetparent"); to_result(stswin, n, TRUE); - wprintw(stswin, "%p", wgetparent(txtwin)); + wprintw(stswin, "%p", (void *) wgetparent(txtwin)); ++n; show_keyword(stswin, n, active, "wgetscrreg");