make use of gcc's __attribute__ extension

This commit is contained in:
Andrzej Rybczak
2009-05-03 15:14:31 +02:00
parent 72acc09b26
commit 84a9af2ee9
4 changed files with 11 additions and 4 deletions

View File

@@ -33,7 +33,7 @@ using namespace NCurses;
using std::string;
using std::wstring;
void NCurses::InitScreen(const char *window_title, bool enable_colors)
void NCurses::InitScreen(GNUC_UNUSED const char *window_title, bool enable_colors)
{
const int ColorsTable[] =
{
@@ -44,7 +44,6 @@ void NCurses::InitScreen(const char *window_title, bool enable_colors)
# ifdef XCURSES
Xinitscr(1, const_cast<char **>(&window_title));
# else
window_title = 0; // silence compiler
initscr();
# endif // XCURSES
if (has_colors() && enable_colors)