Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
BIND
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
635
Issues
635
List
Boards
Labels
Service Desk
Milestones
Merge Requests
107
Merge Requests
107
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ISC Open Source Projects
BIND
Commits
49a2cf8f
Commit
49a2cf8f
authored
Jun 06, 2000
by
David Lawrence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quiet va_start() warnings on BSD/OS 4.1
parent
a5ed46c9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
53 additions
and
2 deletions
+53
-2
acconfig.h
acconfig.h
+18
-0
config.h.in
config.h.in
+18
-0
configure
configure
+10
-1
configure.in
configure.in
+7
-1
No files found.
acconfig.h
View file @
49a2cf8f
...
...
@@ -62,3 +62,21 @@
struct
__sFILE
;
extern
__inline
int
__sputaux
(
int
_c
,
struct
__sFILE
*
_p
);
#endif
/* Shut up warnings from gcc -Wcast-qual on BSD/OS 4.1. */
#undef SHUTUP_STDARG_CAST
#if defined(SHUTUP_STDARG_CAST) && defined(__GNUC__)
#include <stdarg.h>
/* Grr. Must be included *every time*. */
/*
* The silly continuation line is to keep configure from
* commenting out the #undef.
*/
#undef \
va_start
#define va_start(ap, last) \
do { \
union { const void *konst; long *var; } _u; \
_u.konst = &(last); \
ap = (va_list)(_u.var + __va_words(__typeof(last))); \
} while (0)
#endif
/* SHUTUP_STDARG_CAST && __GNUC__ */
config.h.in
View file @
49a2cf8f
...
...
@@ -70,6 +70,24 @@ struct __sFILE;
extern __inline int __sputaux(int _c, struct __sFILE *_p);
#endif
/* Shut up warnings from gcc -Wcast-qual on BSD/OS 4.1. */
#undef SHUTUP_STDARG_CAST
#if defined(SHUTUP_STDARG_CAST) && defined(__GNUC__)
#include <stdarg.h> /* Grr. Must be included *every time*. */
/*
* The silly continuation line is to keep configure from
* commenting out the #undef.
*/
#undef \
va_start
#define va_start(ap, last) \
do { \
union { const void *konst; long *var; } _u; \
_u.konst = &(last); \
ap = (va_list)(_u.var + __va_words(__typeof(last))); \
} while (0)
#endif /* SHUTUP_STDARG_CAST && __GNUC__ */
/* Define if you have the <fcntl.h> header file. */
#undef HAVE_FCNTL_H
...
...
configure
View file @
49a2cf8f
#! /bin/sh
# From configure.in Revision: 1.14
2
# From configure.in Revision: 1.14
3
...
...
@@ -3876,6 +3876,15 @@ case "$host" in
EOF
;;
*
-bsdi4
.1
*
)
#
# Shut up a -Wcast-qual warning from va_start().
#
cat
>>
confdefs.h
<<
\
EOF
#define SHUTUP_STDARG_CAST 1
EOF
;;
esac
#
...
...
configure.in
View file @
49a2cf8f
...
...
@@ -13,7 +13,7 @@ dnl PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
dnl ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
dnl SOFTWARE.
AC_REVISION($Revision: 1.14
2
$)
AC_REVISION($Revision: 1.14
3
$)
AC_PREREQ(2.13)
...
...
@@ -843,6 +843,12 @@ case "$host" in
#
AC_DEFINE(SHUTUP_SPUTAUX)
;;
*-bsdi4.1*)
#
# Shut up a -Wcast-qual warning from va_start().
#
AC_DEFINE(SHUTUP_STDARG_CAST)
;;
esac
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment