add nonstring attribute to silence warning
authorFlorian Dold <florian.dold@gmail.com>
Thu, 28 Feb 2019 14:59:33 +0000 (15:59 +0100)
committerFlorian Dold <florian.dold@gmail.com>
Thu, 28 Feb 2019 14:59:33 +0000 (15:59 +0100)
src/util/common_logging.c

index c5a46d8c3e6a3d7c6ec10fda88362b776f2159ea..60f0b2e8bb63fb970eb5523b9adfca1281f0bbd3 100644 (file)
@@ -100,7 +100,7 @@ struct CustomLogger
  * Note that this message maybe truncated to the first BULK_TRACK_SIZE
  * characters, in which case it is NOT 0-terminated!
  */
-static char last_bulk[BULK_TRACK_SIZE];
+static char last_bulk[BULK_TRACK_SIZE] __attribute__ ((nonstring));
 
 /**
  * Type of the last bulk message.