Enable fcarch assert checks even when FC_ARCHITECTURE is explicitly given
authorBehdad Esfahbod <behdad@behdad.org>
Mon, 31 Dec 2012 23:20:29 +0000 (17:20 -0600)
committerBehdad Esfahbod <behdad@behdad.org>
Mon, 31 Dec 2012 23:20:29 +0000 (17:20 -0600)
After all, if the asserts fail, the resulting library simply can't be
working correctly.

src/fcarch.c

index 545967f..35734c0 100644 (file)
 #endif
 
 #include "fcint.h"
-
-/* If architecture is hardcoded, skip the assert tests */
-
-#ifndef FC_ARCHITECTURE
-
-/* Make sure the cache structure is consistent with what we expect */
-
 #include "fcarch.h"
 
 FC_ASSERT_STATIC (1 == sizeof (char));
@@ -62,8 +55,6 @@ FC_ASSERT_STATIC (0x08 + 2*SIZEOF_VOID_P == sizeof (FcPattern));
 FC_ASSERT_STATIC (0x08 + 2*SIZEOF_VOID_P == sizeof (FcCharSet));
 FC_ASSERT_STATIC (0x08 + 6*SIZEOF_VOID_P == sizeof (FcCache));
 
-#endif
-
 
 int
 main (int argc FC_UNUSED, char **argv FC_UNUSED)