mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-26 20:26:01 +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
|
@ -122,7 +122,10 @@ static void test_options2(void) {
|
|||
assert(opts->record_format == SC_RECORD_FORMAT_MP4);
|
||||
}
|
||||
|
||||
int main(void) {
|
||||
int main(int argc, char *argv[]) {
|
||||
(void) argc;
|
||||
(void) argv;
|
||||
|
||||
test_flag_version();
|
||||
test_flag_help();
|
||||
test_options();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue