alberthrocks

test.c warnings

Apr 5th, 2011
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. albert@albert-PC ~ $ gcc test.c -o test
  2. test.c: In function ‘main’:
  3. test.c:8: warning: format not a string literal and no format arguments
  4. test.c:10: warning: passing argument 1 of ‘scanf’ makes pointer from integer without a cast
  5. /usr/include/stdio.h:448: note: expected ‘const char * __restrict__’ but argument is of type ‘int’
  6. test.c:10: warning: format not a string literal and no format arguments
Advertisement
Add Comment
Please, Sign In to add comment