mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-09-02 15:45:42 +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
|
@ -257,7 +257,10 @@ static void test_serialize_rotate_device(void) {
|
|||
assert(!memcmp(buf, expected, sizeof(expected)));
|
||||
}
|
||||
|
||||
int main(void) {
|
||||
int main(int argc, char *argv[]) {
|
||||
(void) argc;
|
||||
(void) argv;
|
||||
|
||||
test_serialize_inject_keycode();
|
||||
test_serialize_inject_text();
|
||||
test_serialize_inject_text_long();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue