aboutsummaryrefslogtreecommitdiff
path: root/devel/llvm-devel/files/patch-tools_clang_lib_Sema_SemaDeclAttr.cpp
blob: 35879d4021aaaeb32e0c3674a6f7471b7491af1c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

$FreeBSD$

--- tools/clang/lib/Sema/SemaDeclAttr.cpp.orig
+++ tools/clang/lib/Sema/SemaDeclAttr.cpp
@@ -1011,7 +1011,10 @@
   default: break;
   case 5: Supported = !memcmp(Format, "scanf", 5); break;
   case 6: Supported = !memcmp(Format, "printf", 6); break;
-  case 7: Supported = !memcmp(Format, "strfmon", 7); break;
+  case 7:
+    Supported = (!memcmp(Format, "strfmon", 7) ||
+                 !memcmp(Format, "printf0", 7));
+    break;
   case 8:
     Supported = (is_strftime = !memcmp(Format, "strftime", 8)) ||
                 (is_NSString = !memcmp(Format, "NSString", 8)) ||