4
0
Эх сурвалжийг харах

Fix build error spotted by gcc-4.4

#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
Fabio M. Di Nitto 17 жил өмнө
parent
commit
b727ce320d
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      exec/crypto.c

+ 2 - 2
exec/crypto.c

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