~ubuntu-branches/debian/sid/isc-dhcp/sid

« back to all changes in this revision

Viewing changes to includes/cdefs.h

  • Committer: Package Import Robot
  • Author(s): Andrew Pollock
  • Date: 2012-06-09 14:01:05 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20120609140105-lqcz2t0rsefwzamt
Tags: 4.2.4-1
* New upstream release
* debian/control: reformatted Uploaders so that dch doesn't think I'm making
  NMUs
* debian/rules: do a clean between the LDAP-enabled build and the
  non-LDAP-enabled one, so that no LDAP-related artefacts are accidently
  incorporated into the non-LDAP build
* debian/dhclient-script.*: conditionalise the chown/chmod of the new
  resolv.conf on the existence of the old one (closes: #595400)
* debian/dhclient-script.linux: comply with RFC 3442 and ignore
  the routers option if the rfc3442-classless-static-routes option is present
  (closes: #592735)
* debian/dhclient-script.kfreebsd: fix subnet mask handling (closes: #677985)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
   Standard C definitions... */
4
4
 
5
5
/*
6
 
 * Copyright (c) 2011 by Internet Systems Consortium, Inc. ("ISC")
7
 
 * Copyright (c) 2004,2009 by Internet Systems Consortium, Inc. ("ISC")
 
6
 * Copyright (c) 2012 by Internet Systems Consortium, Inc. ("ISC")
 
7
 * Copyright (c) 2004,2009,2011 by Internet Systems Consortium, Inc. ("ISC")
8
8
 * Copyright (c) 1996-2003 by Internet Software Consortium
9
9
 * Copyright (c) 1995 RadioMail Corporation.  All rights reserved.
10
10
 *
46
46
 * the warning by the use of void.  In conjunction with the use of -Werror
47
47
 * these warnings prohibit the compilation of the package.  This macro
48
48
 * allows us to assign the return value to a variable and then ignore it.
 
49
 *
 
50
 * __attribute__((unused)) is added for avoiding another warning about set,
 
51
 * but unused variable. This is produced by unused-but-set-variable switch
 
52
 * that is enabled by default in gcc 4.6.
49
53
 */
50
54
#if !defined(__GNUC__) || (__GNUC__ < 4)
51
55
#define IGNORE_RET(x) (void) x
52
56
#else
53
57
#define IGNORE_RET(x)                   \
54
58
        do {                            \
55
 
                int ignore_return;      \
56
 
                ignore_return = x;      \
 
59
                int __attribute__((unused)) ignore_return ;\
 
60
                ignore_return = x;                         \
57
61
        } while (0)
58
62
#endif
59
63
 
 
64
/* This macro is defined to avoid unused-but-set-variable warning
 
65
 * that is enabled in gcc 4.6 
 
66
 */
 
67
 
 
68
#define IGNORE_UNUSED(x) { x = x; }
 
69
 
60
70
#endif /* __ISC_DHCP_CDEFS_H__ */