~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to build-aux/snippet/warn-on-use.h

  • Committer: Colin Watson
  • Date: 2013-10-30 15:48:33 UTC
  • mfrom: (8.3.5 sid)
  • Revision ID: cjwatson@canonical.com-20131030154833-xdt6e1yfffqom1c4
merge from Debian 8.21-1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* A C macro for emitting warnings if a function is used.
2
 
   Copyright (C) 2010-2012 Free Software Foundation, Inc.
 
2
   Copyright (C) 2010-2013 Free Software Foundation, Inc.
3
3
 
4
4
   This program is free software: you can redistribute it and/or modify it
5
5
   under the terms of the GNU General Public License as published
55
55
   rather than issue the nice warning, but the end result of informing
56
56
   the developer about their portability problem is still achieved):
57
57
   #if HAVE_RAW_DECL_ENVIRON
58
 
   static inline char ***rpl_environ (void) { return &environ; }
 
58
   static char ***rpl_environ (void) { return &environ; }
59
59
   _GL_WARN_ON_USE (rpl_environ, "environ is not always properly declared");
60
60
   # undef environ
61
61
   # define environ (*rpl_environ ())