fork download
  1. void f (char *s){}
  2.  
  3. int main() {
  4. const char s[1] = {'a'};
  5. f(s);
  6. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
cc1: warnings being treated as errors
prog.c: In function ‘main’:
prog.c:5: error: passing argument 1 of ‘f’ discards qualifiers from pointer target type
stdout
Standard output is empty