Skip to content
  • Gabor Buella's avatar
    tests: Use different arguments for select libc call · 13ec6106
    Gabor Buella authored
    In response to these error messages:
    
    ```
    /home/tej/code/syscall_intercept/test/syscall_format.c: In function ‘main’:
    /home/tej/code/syscall_intercept/test/syscall_format.c:389:2: error: passing argument 2 to restrict-qualified parameter aliases with argument 5 [-Werror=restrict]
      select(2, p0, p1, p1, p0);
      ^~~~~~
    /home/tej/code/syscall_intercept/test/syscall_format.c:389:2: error: passing argument 3 to restrict-qualified parameter aliases with argument 4 [-Werror=restrict]
    cc1: all warnings being treated as errors
    ```
    
    ```
    /home/tej/code/syscall_intercept/test/syscall_format.c: In function ‘main’:
    /home/tej/code/syscall_intercept/test/syscall_format.c:390:2: error: passing argument 3 to restrict-qualified parameter aliases with argument 4 [-Werror=restrict]
      select(2, p0, p1, p1, p2);
      ^~~~~~
    cc1: all warnings being treated as errors
    ```
    13ec6106