aboutsummaryrefslogtreecommitdiffstats
path: root/src/string
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/string/memset.c2
-rw-r--r--src/string/strlen.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/string/memset.c b/src/string/memset.c
index c0b87a3..f8c153a 100644
--- a/src/string/memset.c
+++ b/src/string/memset.c
@@ -32,7 +32,7 @@ void* memset(void* segment, int c, size_t size)
/* TODO improve implementation of memset */
char* s = segment;
while (size--)
- *s++ = c;
+ *s++ = (char)c;
return segment;
}
diff --git a/src/string/strlen.c b/src/string/strlen.c
index 7a08fa0..a7aece5 100644
--- a/src/string/strlen.c
+++ b/src/string/strlen.c
@@ -18,6 +18,9 @@
#include <string.h>
+# pragma GCC diagnostic ignored "-Wdiscarded-qualifiers"
+
+
/**
* Returns the number of bytes in a NUL-terminated