summaryrefslogtreecommitdiffstats
path: root/libdimension/tests/warning-as-error.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-02-01 18:08:24 -0500
committerTavian Barnes <tavianator@tavianator.com>2014-02-03 13:17:25 -0500
commitb1fccd03798da1930755557cb4516526cc09bb15 (patch)
tree1e55b79bd9f8858d229e6194d714bf784a375a67 /libdimension/tests/warning-as-error.c
parenta93f1969c780b831d5c4cb5bde938320f2ffd763 (diff)
downloaddimension-b1fccd03798da1930755557cb4516526cc09bb15.tar.xz
Use strerror_r if available instead of sys_errlist.
Diffstat (limited to 'libdimension/tests/warning-as-error.c')
-rw-r--r--libdimension/tests/warning-as-error.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libdimension/tests/warning-as-error.c b/libdimension/tests/warning-as-error.c
index ce274d3..dfc08d6 100644
--- a/libdimension/tests/warning-as-error.c
+++ b/libdimension/tests/warning-as-error.c
@@ -1,5 +1,5 @@
/*************************************************************************
- * Copyright (C) 2009-2011 Tavian Barnes <tavianator@gmail.com> *
+ * Copyright (C) 2009-2014 Tavian Barnes <tavianator@gmail.com> *
* *
* This file is part of The Dimension Test Suite. *
* *
@@ -21,11 +21,13 @@
#include "dimension.h"
#include <stdlib.h>
+#include <errno.h>
int
main(void)
{
dmnsn_die_on_warnings(true);
+ errno = ENOMEM;
dmnsn_warning("This warning is expected.");
return EXIT_SUCCESS;
}