remove useless flag in Makefile, patch one test
This commit is contained in:
parent
2c658cc4ee
commit
467d7e2c0b
2
Makefile
2
Makefile
|
|
@ -1,7 +1,7 @@
|
||||||
CC := gcc
|
CC := gcc
|
||||||
AS := nasm
|
AS := nasm
|
||||||
ASFLAGS := -g -f elf64 -I src/
|
ASFLAGS := -g -f elf64 -I src/
|
||||||
CFLAGS := -g -Wall -Wextra -Wno-override-init -std=c2x -fPIC -fPIE
|
CFLAGS := -g -Wall -Wextra -std=c2x
|
||||||
MAIN := $(wildcard *.c)
|
MAIN := $(wildcard *.c)
|
||||||
SRC := $(wildcard src/*.s)
|
SRC := $(wildcard src/*.s)
|
||||||
OBJ_DIR := build
|
OBJ_DIR := build
|
||||||
|
|
|
||||||
4
main.c
4
main.c
|
|
@ -181,7 +181,7 @@ test_calloc() {
|
||||||
|
|
||||||
char *normal = ft_calloc(10, 1); // return ""
|
char *normal = ft_calloc(10, 1); // return ""
|
||||||
printf("normal: %s_%p\n", normal, normal);
|
printf("normal: %s_%p\n", normal, normal);
|
||||||
for (int i = 0; i <= 10; i++)
|
for (int i = 0; i < 10; i++)
|
||||||
printf("'%b' ", normal[i]);
|
printf("'%b' ", normal[i]);
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
||||||
|
|
@ -208,7 +208,7 @@ test_calloc() {
|
||||||
|
|
||||||
char *normal = ft_calloc(10, 1);
|
char *normal = ft_calloc(10, 1);
|
||||||
printf("normal: %s_%p\n", normal, normal);
|
printf("normal: %s_%p\n", normal, normal);
|
||||||
for (int i = 0; i <= 10; i++)
|
for (int i = 0; i < 10; i++)
|
||||||
printf("'%b' ", normal[i]);
|
printf("'%b' ", normal[i]);
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue