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:
parent
0cdac81166
commit
0f6c9ca2b8
4
Makefile
4
Makefile
@ -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
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user