Bogus warning


this looks like a bug:

s0539:src nico$ cat test.c
#include "stdio.h"

int main() {
   char buf[1];
   sprintf(buf, 1 ? "" : "");
s0539:src nico$ ./clang test.c
running "/Users/nico/src/llvm-svn/Debug/bin/clang -fsyntax-only test.c"
test.c:5:16: warning: format string is not a string literal (potentially insecure)
   sprintf(buf, 1 ? "" : "");
   ~~~~~~~ ^
1 diagnostic generated.


This is a false positive. Thanks for pointing it out! I will add it to my queue of things to fix/improve.