mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-08 18:26:48 +00:00
消除了libc的_start方法的编译警告
This commit is contained in:
parent
d775af70c7
commit
0d6957294d
@ -1,10 +1,13 @@
|
||||
|
||||
extern int main(int, char**);
|
||||
#include<libc/stdio.h>
|
||||
void _start(int argc, char** argv)
|
||||
#include <libc/stdio.h>
|
||||
#include <libc/stdlib.h>
|
||||
|
||||
extern int main(int, char **);
|
||||
|
||||
void _start(int argc, char **argv)
|
||||
{
|
||||
printf("before main\n");
|
||||
// printf("before main\n");
|
||||
int retval = main(argc, argv);
|
||||
printf("before exit, code=%d\n", retval);
|
||||
// printf("before exit, code=%d\n", retval);
|
||||
exit(retval);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user