prepare (1/3):
finished
make (2/3):
make: Entering directory '/out/build/driver'
clang -std=c11 -O2 -o driver main.c
driver successfully constructed
make: Leaving directory '/out/build/driver'
make: Entering directory '/out/build/mumsh'
clang -o mumsh myshell.c
myshell.c:23:9: warning: implicitly declaring library function 'memset' with type 'void *(void *, int, unsigned long)' [-Wimplicit-function-declaration]
memset(cmd,0,1024);
^
myshell.c:23:9: note: include the header <string.h> or explicitly provide a declaration for 'memset'
myshell.c:27:13: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration]
if(!strcmp("exit\n",cmd)){printf("exit");break;}
^
myshell.c:27:13: note: include the header <string.h> or explicitly provide a declaration for 'strcmp'
myshell.c:47:18: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration]
int length = strlen(cmd)-1;
^
myshell.c:47:18: note: include the header <string.h> or explicitly provide a declaration for 'strlen'
myshell.c:127:19: warning: implicitly declaring library function 'strtok' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration]
char *token = strtok(cmd," ");
^
myshell.c:127:19: note: include the header <string.h> or explicitly provide a declaration for 'strtok'
myshell.c:236:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
5 warnings generated.
clang -fsanitize=address -fno-omit-frame-pointer -fsanitize=undefined -fsanitize=integer -o mumsh_memory_check myshell.c
myshell.c:23:9: warning: implicitly declaring library function 'memset' with type 'void *(void *, int, unsigned long)' [-Wimplicit-function-declaration]
memset(cmd,0,1024);
^
myshell.c:23:9: note: include the header <string.h> or explicitly provide a declaration for 'memset'
myshell.c:27:13: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration]
if(!strcmp("exit\n",cmd)){printf("exit");break;}
^
myshell.c:27:13: note: include the header <string.h> or explicitly provide a declaration for 'strcmp'
myshell.c:47:18: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration]
int length = strlen(cmd)-1;
^
myshell.c:47:18: note: include the header <string.h> or explicitly provide a declaration for 'strlen'
myshell.c:127:19: warning: implicitly declaring library function 'strtok' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration]
char *token = strtok(cmd," ");
^
myshell.c:127:19: note: include the header <string.h> or explicitly provide a declaration for 'strtok'
myshell.c:236:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
5 warnings generated.
mumsh successfully constructed
make: Leaving directory '/out/build/mumsh'
finished
clean (3/3):
finished
all task finished, build successfully