diff options
| author | Mattias Andrée <maandree@kth.se> | 2021-03-05 20:59:13 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2021-03-05 21:02:20 +0100 |
| commit | 7edd0ced5c8e45161cb655a36f05f2a90283bb9e (patch) | |
| tree | 943f82c02c73936aab637d1b40e0513c1591834c /src/test/update-warnings.h | |
| parent | Add -DDEBUG to debug.mk (diff) | |
| download | libgamma-7edd0ced5c8e45161cb655a36f05f2a90283bb9e.tar.gz libgamma-7edd0ced5c8e45161cb655a36f05f2a90283bb9e.tar.bz2 libgamma-7edd0ced5c8e45161cb655a36f05f2a90283bb9e.tar.xz | |
Join test source files into test.c and update
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/test/update-warnings.h')
| -rw-r--r-- | src/test/update-warnings.h | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/src/test/update-warnings.h b/src/test/update-warnings.h deleted file mode 100644 index 4a1b027..0000000 --- a/src/test/update-warnings.h +++ /dev/null @@ -1,52 +0,0 @@ -/* See LICENSE file for copyright and license details. */ -#ifndef LIBGAMMA_TEST_UPDATE_WARNINGS_H -#define LIBGAMMA_TEST_UPDATE_WARNINGS_H - -#include <libgamma.h> - - -/* - * This file testes whether the program is out of date - * when it is compiled. This is done by checking for newer - * values of constants that tells us how much there is of - * different things for which we may want to create - * descriptions or otherwise handle especially. - * - * To get the current value of for example `LIBGAMMA_ERROR_MIN` - * simply run the command - * - * cpp <<EOF | tail -n 1 - * #include <libgamma.h> - * LIBGAMMA_ERROR_MIN - * EOF - * - * However, we only do this for if GCC is used to - * compile the program because the #warning CPP - * directive is a GCC extension. If you are not - * using GNU you may want to find another way to - * accomplish this. - */ - -#ifdef __GCC__ -# pragma GCC diagnostic push -# pragma GCC diagnostic ignored "-Wcpp" -# if LIBGAMMA_ERROR_MIN < -46 -# warning New error codes have been added to libgamma -# endif -# if LIBGAMMA_METHOD_COUNT > 6 -# warning New adjust methods has been added to libgamma -# endif -# if LIBGAMMA_CONNECTOR_TYPE_COUNT > 20 -# warning New connector types have been added to libgamma -# endif -# if LIBGAMMA_SUBPIXEL_ORDER_COUNT > 6 -# warning New subpixel orders have been added to libgamma -# endif -# if LIBGAMMA_CRTC_INFO_COUNT > 13 -# warning New CRTC information fields have been added to libgamma -# endif -# pragma GCC diagnostic pop -#endif - - -#endif |
