X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fcheck_type%2F_info.c;fp=ccan%2Fcheck_type%2F_info.c;h=0000000000000000000000000000000000000000;hp=42d3328ad2a95c370002b70bf3a1b4cdf1f012cd;hb=570c9c555f076e74f46141bb42b5d1d7ac89f632;hpb=8f61c0bccb152b2365baf70deac1e59264d7feb7;ds=sidebyside diff --git a/ccan/check_type/_info.c b/ccan/check_type/_info.c deleted file mode 100644 index 42d3328a..00000000 --- a/ccan/check_type/_info.c +++ /dev/null @@ -1,32 +0,0 @@ -#include -#include -#include "config.h" - -/** - * check_type - routines for compile time type checking - * - * C has fairly weak typing: ints get automatically converted to longs, signed - * to unsigned, etc. There are some cases where this is best avoided, and - * these macros provide methods for evoking warnings (or build errors) when - * a precise type isn't used. - * - * On compilers which don't support typeof() these routines are less effective, - * since they have to use sizeof() which can only distiguish between types of - * different size. - * - * Licence: LGPL (2 or any later version) - */ -int main(int argc, char *argv[]) -{ - if (argc != 2) - return 1; - - if (strcmp(argv[1], "depends") == 0) { -#if !HAVE_TYPEOF - printf("ccan/build_assert\n"); -#endif - return 0; - } - - return 1; -}