Add gcc flags to improve reliability

This commit is contained in:
Dr-Noob
2018-06-22 21:01:16 +02:00
parent 3199ac739a
commit e9b5fe5f0a
3 changed files with 7 additions and 6 deletions

2
udev.c
View File

@@ -161,7 +161,7 @@ char* getString_L3(struct cache* cach) {
char* getString_MaxFrequency(struct frequency* freq) {
//Max 3 digits and 3 for '(M/G)Hz' plus 1 for '\0'
int size = (4+3+1);
unsigned int size = (4+3+1);
assert(strlen(STRING_UNKNOWN)+1 <= size);
char* string = malloc(sizeof(char)*size);
if(freq->max == UNKNOWN)