bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dealing with bad warnings


From: Paul Eggert
Subject: Re: Dealing with bad warnings
Date: Wed, 07 Sep 2011 07:18:35 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.21) Gecko/20110831 Thunderbird/3.1.13

On 09/07/11 04:55, Reuben Thomas wrote:
> For example, from terminfo:
> char *tigetstr (char *capname);
> So, what's a hacker to do?

If we're talking C, you can put this into your
application's system.h file:

static inline char *
my_tigetstr (char const *capname)
{
  return tigetstr ((char *) capname);
}
#undef tigetstr
#define tigetstr my_tigetstr

If we're talking C++, you can play similar games
with namespaces, I expect.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]