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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user