gcc is now returning the same output on this example, removing this example

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@342211 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Sylvestre Ledru 2018-09-14 08:52:18 +00:00
parent f544500eef
commit 44383fe7b4
1 changed files with 0 additions and 6 deletions

View File

@ -51,12 +51,6 @@ helps when multiple instances of the same character occur on a line. (We'll
revisit this more in following examples.)</p> revisit this more in following examples.)</p>
<pre> <pre>
$ <span class="cmd">gcc-4.9 -fsyntax-only -Wformat format-strings.c</span>
format-strings.c: In function 'void f()':
format-strings.c:91:16: warning: field precision specifier '.*' expects a matching 'int' argument [-Wformat=]
printf("%.*d");
^
format-strings.c:91:16: warning: format '%d' expects a matching 'int' argument [-Wformat=]
$ <span class="cmd">clang -fsyntax-only format-strings.c</span> $ <span class="cmd">clang -fsyntax-only format-strings.c</span>
<span class="loc">format-strings.c:91:13:</span> <span class="warn">warning:</span> <span class="msg">'.*' specified field precision is missing a matching 'int' argument</span> <span class="loc">format-strings.c:91:13:</span> <span class="warn">warning:</span> <span class="msg">'.*' specified field precision is missing a matching 'int' argument</span>
<span class="snip" > printf("%.*d");</span> <span class="snip" > printf("%.*d");</span>