delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/11/18/11:46:52

Message-Id: <3.0.1.32.19971118104846.007ce6c0@yacker.xiotech.com>
Date: Tue, 18 Nov 1997 10:48:46 -0600
To: djgpp-workers AT delorie DOT com
From: Randy Maas <randym AT acm DOT org>
Subject: fix for "'enable' shadows global declaration" warning
Mime-Version: 1.0

Just a small patch:
compiling a file that has
#include <dos.h>
#include <sys\excpetn.h>

and using the compiler flag -Wshadow, produces:

/local/include/sys/exceptn.h:39: warning: declaration of `enable' shadows
global declaration

here is a little patch that stops the warning

*** include/sys/exceptn.h       Mon Dec  4 22:39:44 1995
--- include/sys/exceptn.h-new     Tue Nov 18 10:34:04 1997
***************
*** 37,41

  void __djgpp_exception_toggle(void);
! int  __djgpp_set_ctrl_c(int enable);  /* On by default */

  #endif /* !_POSIX_SOURCE */

--- 37,41 -----

  void __djgpp_exception_toggle(void);
! int  __djgpp_set_ctrl_c(int enable_ctrl_c);    /* On by default */

  #endif /* !_POSIX_SOURCE */




- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019