Files
ghidra/Ghidra/Debug/Framework-Debugging
Johannes Obermayr 7838ee2969 Fix build error.
> Task :Framework-Debugging:compileExpCloneExitExecutableExpCloneExitC FAILED
Ghidra/Debug/Framework-Debugging/src/expCloneExit/c/expCloneExit.c:22:33: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast]
    printf("I'm %d, PID: %d\n", (int)param, getpid());
                                ^~~~~~~~~~
Ghidra/Debug/Framework-Debugging/src/expCloneExit/c/expCloneExit.c:22:45: warning: call to undeclared function 'getpid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    printf("I'm %d, PID: %d\n", (int)param, getpid());
                                            ^
Ghidra/Debug/Framework-Debugging/src/expCloneExit/c/expCloneExit.c:24:16: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'void *' [-Wint-conversion]
        return 1;
               ^
Ghidra/Debug/Framework-Debugging/src/expCloneExit/c/expCloneExit.c:27:16: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'void *' [-Wint-conversion]
        return 2;
               ^
Ghidra/Debug/Framework-Debugging/src/expCloneExit/c/expCloneExit.c:33:12: error: incompatible pointer to integer conversion returning 'void *' from a function with result type 'int' [-Wint-conversion]
    return work(NULL);
           ^~~~~~~~~~
2 warnings and 3 errors generated.
2022-10-14 14:31:41 +02:00
..
2020-12-16 13:06:53 -05:00
2022-10-14 14:31:41 +02:00