summaryrefslogtreecommitdiff
path: root/lib/ignore-value.h
Commit message (Collapse)AuthorAgeFilesLines
* maint: Run 'make update-copyright'Paul Eggert2019-01-011-1/+1
|
* maint: Run 'make update-copyright'Paul Eggert2018-01-011-1/+1
|
* all: prefer https: URLsPaul Eggert2017-09-131-1/+1
|
* version-etc: new yearPaul Eggert2017-01-011-1/+1
| | | | | | | | | | * build-aux/gendocs.sh (version): * doc/gendocs_template: * doc/gendocs_template_min: * doc/gnulib.texi: * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright dates by hand in templates and the like. * all files: Run 'make update-copyright'.
* version-etc: new yearPaul Eggert2016-01-011-1/+1
| | | | | | | | | | * build-aux/gendocs.sh (version): * doc/gendocs_template: * doc/gendocs_template_min: * doc/gnulib.texi: * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright dates by hand in templates and the like. * all files: Run 'make update-copyright'.
* maint: add coding cookies to non-ASCII sourcesPaul Eggert2015-09-241-1/+1
| | | | | | | | | | | | Otherwise, Emacs might do the wrong thing if run in an he_IL.ISO-8859-8 locale, which an Emacs developer does on occasion. Problem reported by Eli Zaretskii in: http://lists.gnu.org/archive/html/emacs-devel/2015-09/msg00966.html Don't bother with test files, as they aren't copied to the Emacs source directory. If this problem affects test files in some other GNU project, we can add coding cookies to the non-ASCII test files later.
* version-etc: new yearPaul Eggert2014-12-311-1/+1
| | | | | | * doc/gnulib.texi: * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date. * all files: Run 'make update-copyright'.
* maint: update copyrightEric Blake2014-01-011-1/+1
| | | | | | I ran 'make update-copyright'. Signed-off-by: Eric Blake <eblake@redhat.com>
* ignore-value: revert previous code changePaul Eggert2013-11-281-4/+6
| | | | | | | * lib/ignore-value.h (ignore_value): Use __extension__ and __typeof__ only for GCC 3.4 and later. Reported by Eric Blake in <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00102.html>. Change the comment to try to explain this better.
* ignore-value: prefer GCC version back through 2.0Paul Eggert2013-11-271-4/+4
| | | | | | | | The code didn't match the comments, so I did a bit of software archaeology. GCC 2.0 seems to support __extension__ and __typeof__, so fix both code and comments to use 2.0. * lib/ignore-value.h (ignore_value): Use __extension__ and __typeof__ for GCC 2.0 through 3.3, too.
* ignore-value: port to gcc -pedanticPaul Eggert2013-06-231-6/+7
| | | | | | | * lib/ignore-value.h (ignore_value): Port to gcc -pedantic, by using __extension__. Reindent as per usual gnulib style nowadays. Simplify GCC version check.
* maint: update all copyright year number rangesEric Blake2013-01-011-1/+1
| | | | | | Run "make update-copyright". Compare to commit 1602f0a from last year. Signed-off-by: Eric Blake <eblake@redhat.com>
* ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definitionJim Meyering2012-05-141-10/+0
| | | | | * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused definition. Reported by Bruno Haible.
* ignore-value: remove deprecated ignore_ptr functionJim Meyering2012-01-101-5/+0
| | | | | * lib/ignore-value.h (ignore_ptr): Remove deprecated function. * NEWS: Note this.
* maint: update all copyright year number rangesJim Meyering2012-01-011-1/+1
| | | | Run "make update-copyright".
* Consistent macro naming for macros that use GCC __attribute__.Bruno Haible2011-02-151-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from _ATTRIBUTE_NONNULL_. * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise. * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR. * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from ATTRIBUTE_DEPRECATED. * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from ATTRIBUTE_NORETURN. * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise. * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise. * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise. * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise. (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC. (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE. * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from ATTRIBUTE_SENTINEL. * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from ATTRIBUTE_RETURN_CHECK. * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise. * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from ATTRIBUTE_NORETURN. * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise. Reported by Paul Eggert.
* ignore-value: remove dependency on stdintPádraig Brady2011-01-211-2/+0
| | | | | | | | | Since commit 939dedd9, 06-01-2011, "ignore-value: support aggregate types" we no longer need stdint (intptr_t). * lib/ignore-value.h: Remove uneeded <stdint.h>. * modules/ignore-value: Remove stdint dependency.
* ignore-value: clarify some commentsPádraig Brady2011-01-071-3/+7
| | | | | | | | * lib/ignore-value.h: Add Eric Blake as an author since he rewrote the macros. (ignore_value): Specify exactly when the GCC warn_unused_result feature became available. (ignore_ptr): Mention that ignore_value supports aggregates.
* ignore-value: support aggregate typesEric Blake2011-01-061-4/+5
| | | | | | | | | | | | Also has the advantage of avoiding problems with gcc -Wbad-function-cast * lib/ignore-value.h (ignore_value): Provide separate gcc definition. * modules/ignore-value-tests: New test module. * tests/test-ignore-value.c: New test. Signed-off-by: Eric Blake <eblake@redhat.com>
* ignore-value: make ignore_value more generic; deprecate ignore_ptrPádraig Brady2011-01-051-4/+21
| | | | | | | | | * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t. (ATTRIBUTE_DEPRECATED): Define. (_ignore_case): New function. (ignore_value): New macro, to replace the old function. (ignore_ptr): Arrange for any use to evoke a deprecation warning. * modules/ignore-value (Depends-on): Add stdint.
* maint: update almost all copyright ranges to include 2011Jim Meyering2011-01-011-1/+1
| | | | Run the new "make update-copyright" rule.
* ignore-value: make header idempotentEric Blake2010-10-151-0/+5
| | | | | | | * lib/ignore-value.h: Add double-inclusion guards. Reported by Stefan Berger. Signed-off-by: Eric Blake <eblake@redhat.com>
* update nearly all FSF copyright year lists to include 2010Jim Meyering2010-01-011-1/+1
| | | | | Use the same procedure as for 2009, outlined in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
* ignore-value: handle pointer types, tooPádraig Brady2009-08-271-14/+6
| | | | | | | | | * lib/ignore-value.h (__attribute__): Remove definition. (ignore_value): Remove use of "__attribute__ ((unused))" in favor of a more concise and more-often effective "(void) i" statement. (ignore_ptr): New function to suppress warnings from functions that return pointers, and to make it explicit that one function doesn't handle all cases.
* ignore-value: new moduleJim Meyering2008-10-171-0/+45
* modules/ignore-value: New file. * lib/ignore-value.h: New file. * MODULES.html.sh (Compiler warning management): New section, just for this module. More to come.