summaryrefslogtreecommitdiffstats
path: root/libdimension/tests/warning-as-error.c
diff options
context:
space:
mode:
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;
}