Skip to content

Instantly share code, notes, and snippets.

@kvanbere
Created December 18, 2017 08:30
Show Gist options
  • Save kvanbere/538862a51e61ffe6b293393742159858 to your computer and use it in GitHub Desktop.
Save kvanbere/538862a51e61ffe6b293393742159858 to your computer and use it in GitHub Desktop.
$ clang -Wall test.c
test.c:14:3: warning: null passed to a callee that requires a non-null argument [-Wnonnull]
safelyPrintImportant(NULL);
^ ~~~~
test.c:8:39: note: callee declares array parameter as static here
void safelyPrintImportant(important_t imp[static 1]) {
^ ~~~~~~~~~~
$ clang --version
Apple LLVM version 9.0.0 (clang-900.0.38)
Target: x86_64-apple-darwin17.2.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment