]> git.proxmox.com Git - mirror_corosync.git/commitdiff
Fix build error spotted by gcc-4.4
authorFabio M. Di Nitto <fdinitto@redhat.com>
Thu, 19 Feb 2009 08:05:52 +0000 (08:05 +0000)
committerFabio M. Di Nitto <fdinitto@redhat.com>
Thu, 19 Feb 2009 08:05:52 +0000 (08:05 +0000)
#elif with no clause is clearly wrong and continuing when we don't
know the byte order only defers the problem to a point where its much
harder to debug

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1767 fd59a12c-fef9-0310-b244-a6a79926bd2f

exec/crypto.c

index 572c1661ed0170394cf2d8e44b19c0d2a7a73d0a..e943bc4a9bc0913b1f396894f0e1ed1844d71066 100644 (file)
@@ -37,8 +37,8 @@ typedef uint64_t ulong64;
 #define ENDIAN_LITTLE
 #elif _BYTE_ORDER == _BIG_ENDIAN
 #define ENDIAN_BIG
-#elif
-#warning "cannot detect byte order"
+#else
+#error "cannot detect byte order"
 #endif
 
 #if defined(COROSYNC_LINUX)