bug-make
[Top][All Lists]
Advanced

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

[bug #16473] Improper typedef of bsd_signal


From: Jerker Bäck
Subject: [bug #16473] Improper typedef of bsd_signal
Date: Mon, 1 May 2006 00:33:09 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)

URL:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=16473>

                 Summary: Improper typedef of bsd_signal
                 Project: make
            Submitted by: jerker_back
            Submitted on: Monday 05/01/06 at 00:33
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
       Component Version: 3.81
        Operating System: Any
           Fixed Release: None

    _______________________________________________________

Details:

The signal function pointer typedef in
main.c(519) typedef RETSIGTYPE (*bsd_signal_ret_t) ();

will issue:
warning C4113: 'bsd_signal_ret_t' differs in parameter lists from
'sighandler_t'

This is because sighandler_t is defined in MS C-lib signal.h as:
typedef void (__cdecl * sighandler_t)(int);

I don't know if this is different in other C libs but I find it unlikely.
GLIBC defines it in signal.h as:
typedef void (*__sighandler_t) (int);

Solution:
main.c(519) typedef RETSIGTYPE (*bsd_signal_ret_t) (int);






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=16473>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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