Skip to content
  • Ahmed S. Darwish's avatar
    build-sys: Set C language standard to gnu11 · dcbe79bd
    Ahmed S. Darwish authored and Tanu Kaskinen's avatar Tanu Kaskinen committed
    
    
    Per glibc feature_test_macros(7), setting compiler flags to
    -std=c11 (or any c* variant like c99) enforces strict ANSI
    mode.
    
    Enforcing strict ANSI makes all declarations under _GNU_SOURCE
    unavailable. This leads to build warnings in the form of:
    
        warning: implicit declaration of function ‘syscall’
    
    Thus replace -std=c11 with -std=gnu11
    
    Signed-off-by: default avatarAhmed S. Darwish <darwish.07@gmail.com>
    dcbe79bd