1
1
mirror of https://github.com/rui314/mold.git synced 2024-12-26 18:02:30 +03:00

Fix a compiler warning

This commit is contained in:
Rui Ueyama 2021-05-18 20:12:28 +09:00
parent 0cdac81166
commit 0f6c9ca2b8
2 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@ mold: $(OBJS) $(MIMALLOC_LIB)
$(CXX) $(CFLAGS) $(OBJS) -o $@ $(LDFLAGS) $(LIBS)
mold-wrapper.so: mold-wrapper.c Makefile
cc -fPIC -shared -o $@ $< -ldl
$(CC) -fPIC -shared -o $@ $< -ldl
$(OBJS): mold.h elf.h Makefile
@ -83,4 +83,4 @@ uninstall:
clean:
rm -f *.o *~ mold mold-wrapper.so
.PHONY: all intel_tbb test clean
.PHONY: all test clean

View File

@ -73,7 +73,7 @@ int execle(const char *path, const char *arg0, ...) {
char *argv[4096] = {(char *)arg0};
get_args(ap, 4096, argv);
char **env = va_arg(ap, char **);
execve(path, argv, env);
return execve(path, argv, env);
}
int execv(const char *path, char *const *argv) {