bug-groff
[Top][All Lists]
Advanced

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

Re: groff 1.17.2 fails to build under vax-dec-ultrix4.3


From: Ralph Corderoy
Subject: Re: groff 1.17.2 fails to build under vax-dec-ultrix4.3
Date: 16 Jul 2001 19:38:36 +0100

Hi John,

> The only workaround that I can see is to have a C function
> "my_atexit" that has a proper prototype for C++ and calls atexit.

I've avoided C++ and I can't get my old gcc here to produce the same
error.  Ignoring that, can't a cast be used to shut it up in Ultrix's
case?

    int atexit(void (*)());

    void foo(void)
    {
    }

    int main(int argc, char **argv)
    {
        argc = argc;
        argv = argv;
        (*(int (*)(void (*)(void)))atexit)(foo);

        return 0;
    }


Ralph.




reply via email to

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