Forráskód Böngészése

Replace #warning with #pragma message

Julius Pfrommer 6 éve
szülő
commit
b02d84a015
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      src/ua_types_encoding_binary.c

+ 2 - 2
src/ua_types_encoding_binary.c

@@ -131,7 +131,7 @@ encodeWithExchangeBuffer(const void *ptr, encodeBinarySignature encodeFunc, Ctx
 
 #if !UA_BINARY_OVERLAYABLE_INTEGER
 
-#warning "Integer endianness could not be detected to be little endian. Use slow generic encoding."
+#pragma message "Integer endianness could not be detected to be little endian. Use slow generic encoding."
 
 /* These en/decoding functions are only used when the architecture isn't little-endian. */
 static void
@@ -307,7 +307,7 @@ DECODE_BINARY(UInt64) {
 
 #include <math.h>
 
-#warning "No native IEEE 754 format detected. Use slow generic encoding."
+#pragma message "No native IEEE 754 format detected. Use slow generic encoding."
 
 /* Handling of IEEE754 floating point values was taken from Beej's Guide to
  * Network Programming (http://beej.us/guide/bgnet/) and enhanced to cover the