]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
fix non-const char * write-strings compile error
authorKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Fri, 22 Jan 2021 08:11:20 +0000 (10:11 +0200)
committerKonstantinos Margaritis <markos@users.noreply.github.com>
Mon, 25 Jan 2021 10:13:35 +0000 (12:13 +0200)
src/util/arch/common/simd_utils.h

index b20becdc8af7e5abede9b869d950f8154dd46a7d..e0073fadc3376fcd87853ff28b67ca335c4a1dad 100644 (file)
@@ -45,7 +45,7 @@
 #endif // HAVE_SIMD_128_BITS
 
 #ifdef DEBUG
-static inline void print_m128_16x8(char *label, m128 vector) {
+static inline void print_m128_16x8(const char *label, m128 vector) {
     uint8_t ALIGN_ATTR(16) data[16];
     store128(data, vector);
     DEBUG_PRINTF("%s: ", label);
@@ -54,7 +54,7 @@ static inline void print_m128_16x8(char *label, m128 vector) {
     printf("\n");
 }
 
-static inline void print_m128_8x16(char *label, m128 vector) {
+static inline void print_m128_8x16(const char *label, m128 vector) {
     uint16_t ALIGN_ATTR(16) data[8];
     store128(data, vector);
     DEBUG_PRINTF("%s: ", label);
@@ -63,7 +63,7 @@ static inline void print_m128_8x16(char *label, m128 vector) {
     printf("\n");
 }
 
-static inline void print_m128_4x32(char *label, m128 vector) {
+static inline void print_m128_4x32(const char *label, m128 vector) {
     uint32_t ALIGN_ATTR(16) data[4];
     store128(data, vector);
     DEBUG_PRINTF("%s: ", label);