mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-17 07:49:26 +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
|
@ -65,7 +65,10 @@ static void test_buffer_read64be(void) {
|
|||
assert(val == 0xABCD1234567890EF);
|
||||
}
|
||||
|
||||
int main(void) {
|
||||
int main(int argc, char *argv[]) {
|
||||
(void) argc;
|
||||
(void) argv;
|
||||
|
||||
test_buffer_write16be();
|
||||
test_buffer_write32be();
|
||||
test_buffer_write64be();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue