mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-09-05 00:55:57 +00:00
Declare main() with argc/argv params in tests
Declaring the main method as "int main(void)" causes issues with SDL. Fixes #1209 <https://github.com/Genymobile/scrcpy/issues/1209>
This commit is contained in:
parent
322f1512ea
commit
199c74f62f
7 changed files with 28 additions and 7 deletions
|
@ -32,7 +32,10 @@ static void test_queue(void) {
|
|||
assert(queue_is_empty(&queue));
|
||||
}
|
||||
|
||||
int main(void) {
|
||||
int main(int argc, char *argv[]) {
|
||||
(void) argc;
|
||||
(void) argv;
|
||||
|
||||
test_queue();
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue