• Home
  • Raw
  • Download

Lines Matching full:warning

21   scanf(s, i); // expected-warning{{format string is not a string literal}}  in test()
22 scanf("%0d", i); // expected-warning{{zero field width in scanf format string is unused}} in test()
23 scanf("%00d", i); // expected-warning{{zero field width in scanf format string is unused}} in test()
24 …scanf("%d%[asdfasdfd", i, s); // expected-warning{{no closing ']' for '%[' in scanf format string}} in test()
27 scanf ("%" "hu" "\n", &s_x); // no-warning in test()
28 scanf("%y", i); // expected-warning{{invalid conversion specifier 'y'}} in test()
29 scanf("%%"); // no-warning in test()
30 scanf("%%%1$d", i); // no-warning in test()
31 scanf("%1$d%%", i); // no-warning in test()
32 scanf("%d", i, i); // expected-warning{{data argument not used by format string}} in test()
33 scanf("%*d", i); // // expected-warning{{data argument not used by format string}} in test()
34 scanf("%*d", i); // // expected-warning{{data argument not used by format string}} in test()
35 scanf("%*d%1$d", i); // no-warning in test()
37 scanf("%s", (char*)0); // no-warning in test()
38 scanf("%s", (volatile char*)0); // no-warning in test()
39 scanf("%s", (signed char*)0); // no-warning in test()
40 scanf("%s", (unsigned char*)0); // no-warning in test()
41 scanf("%hhu", (signed char*)0); // no-warning in test()
45 …scanf("%hhs", "foo"); // expected-warning{{length modifier 'hh' results in undefined behavior or n… in bad_length_modifiers()
46 …scanf("%1$zp", &p); // expected-warning{{length modifier 'z' results in undefined behavior or no e… in bad_length_modifiers()
47 scanf("%ls", ws); // no-warning in bad_length_modifiers()
48 scanf("%#.2Lf", ld); // expected-warning{{invalid conversion specifier '#'}} in bad_length_modifiers()
51 // Test that the scanf call site is where the warning is attached. If the
57 scanf(kFormat1, i); // expected-warning{{zero field width in scanf format string is unused}} in pr9751()
58 scanf("%00d", i); // expected-warning{{zero field width in scanf format string is unused}} in pr9751()
60 scanf(kFormat2, str); // expected-warning{{no closing ']' for '%[' in scanf format string}} in pr9751()
61 scanf("%[", str); // expected-warning{{no closing ']' for '%[' in scanf format string}} in pr9751()
63 …scanf(kFormat3, &i); // expected-warning {{format specifies type 'unsigned short *' but the argume… in pr9751()
65 …scanf(kFormat4, &i); // expected-warning {{length modifier 'l' results in undefined behavior or no… in pr9751()
72 …fscanf(f, "%ld", i); // expected-warning{{format specifies type 'long *' but the argument has type… in test_variants()
73 …sscanf(buf, "%ld", i); // expected-warning{{format specifies type 'long *' but the argument has ty… in test_variants()
74 …my_scanf("%ld", i); // expected-warning{{format specifies type 'long *' but the argument has type … in test_variants()
79 vscanf("%[abc", ap); // expected-warning{{no closing ']' for '%[' in scanf format string}} in test_variants()
80 vfscanf(f, "%[abc", ap); // expected-warning{{no closing ']' for '%[' in scanf format string}} in test_variants()
81 vsscanf(buf, "%[abc", ap); // expected-warning{{no closing ']' for '%[' in scanf format string}} in test_variants()
85 …scanf("%[abc]", ip); // expected-warning{{format specifies type 'char *' but the argument has type… in test_scanlist()
86 …scanf("%h[abc]", sp); // expected-warning{{length modifier 'h' results in undefined behavior or no… in test_scanlist()
87 scanf("%l[xyx]", ls); // no-warning in test_scanlist()
88 …scanf("%ll[xyx]", ls); // expected-warning {{length modifier 'll' results in undefined behavior or… in test_scanlist()
91 scanf("%[]% ]", sp); // no-warning in test_scanlist()
92 scanf("%[^]% ]", sp); // no-warning in test_scanlist()
93 scanf("%[a^]% ]", sp); // expected-warning {{invalid conversion specifier ' '}} in test_scanlist()
100 …scanf("%as", sp); // expected-warning{{format specifies type 'float *' but the argument has type '… in test_alloc_extension()
101 …scanf("%aS", lsp); // expected-warning{{format specifies type 'float *' but the argument has type … in test_alloc_extension()
102 …scanf("%a[bcd]", sp); // expected-warning{{format specifies type 'float *' but the argument has ty… in test_alloc_extension()
106 scanf("%ms", sp); // No warning. in test_alloc_extension()
107 scanf("%mS", lsp); // No warning. in test_alloc_extension()
108 scanf("%mc", sp); // No warning. in test_alloc_extension()
109 scanf("%mC", lsp); // No warning. in test_alloc_extension()
110 scanf("%m[abc]", sp); // No warning. in test_alloc_extension()
111 …scanf("%md", sp); // expected-warning{{length modifier 'm' results in undefined behavior or no eff… in test_alloc_extension()
114 …scanf("%ms", fp); // expected-warning{{format specifies type 'char **' but the argument has type '… in test_alloc_extension()
115 …scanf("%mS", fp); // expected-warning-re{{format specifies type 'wchar_t **' (aka '{{[^']+}}') but… in test_alloc_extension()
116 …scanf("%mc", fp); // expected-warning{{format specifies type 'char **' but the argument has type '… in test_alloc_extension()
117 …scanf("%mC", fp); // expected-warning-re{{format specifies type 'wchar_t **' (aka '{{[^']+}}') but… in test_alloc_extension()
118 …scanf("%m[abc]", fp); // expected-warning{{format specifies type 'char **' but the argument has ty… in test_alloc_extension()
122 …scanf("%qd", x); // expected-warning{{format specifies type 'long long *' but the argument has typ… in test_quad()
123 scanf("%qd", llx); // no-warning in test_quad()
127 …scanf("%n", (void*)0); // expected-warning{{format specifies type 'int *' but the argument has typ… in test_writeback()
128 …scanf("%n %c", x, x); // expected-warning{{format specifies type 'char *' but the argument has typ… in test_writeback()
130 scanf("%hhn", (signed char*)0); // no-warning in test_writeback()
131 scanf("%hhn", (char*)0); // no-warning in test_writeback()
132 scanf("%hhn", (unsigned char*)0); // no-warning in test_writeback()
133 …scanf("%hhn", (int*)0); // expected-warning{{format specifies type 'signed char *' but the argumen… in test_writeback()
135 scanf("%hn", (short*)0); // no-warning in test_writeback()
136 scanf("%hn", (unsigned short*)0); // no-warning in test_writeback()
137 …scanf("%hn", (int*)0); // expected-warning{{format specifies type 'short *' but the argument has t… in test_writeback()
139 scanf("%n", (int*)0); // no-warning in test_writeback()
140 scanf("%n", (unsigned int*)0); // no-warning in test_writeback()
141 …scanf("%n", (char*)0); // expected-warning{{format specifies type 'int *' but the argument has typ… in test_writeback()
143 scanf("%ln", (long*)0); // no-warning in test_writeback()
144 scanf("%ln", (unsigned long*)0); // no-warning in test_writeback()
145 …scanf("%ln", (int*)0); // expected-warning{{format specifies type 'long *' but the argument has ty… in test_writeback()
147 scanf("%lln", (long long*)0); // no-warning in test_writeback()
148 scanf("%lln", (unsigned long long*)0); // no-warning in test_writeback()
149 …scanf("%lln", (int*)0); // expected-warning{{format specifies type 'long long *' but the argument … in test_writeback()
151 scanf("%qn", (long long*)0); // no-warning in test_writeback()
152 scanf("%qn", (unsigned long long*)0); // no-warning in test_writeback()
153 …scanf("%qn", (int*)0); // expected-warning{{format specifies type 'long long *' but the argument h… in test_writeback()
160 …scanf("%d", cip); // expected-warning{{format specifies type 'int *' but the argument has type 'co… in test_qualifiers()
161 …scanf("%n", cip); // expected-warning{{format specifies type 'int *' but the argument has type 'co… in test_qualifiers()
162 …scanf("%s", ccp); // expected-warning{{format specifies type 'char *' but the argument has type 'c… in test_qualifiers()
163 …scanf("%d", cvip); // expected-warning{{format specifies type 'int *' but the argument has type 'c… in test_qualifiers()
165 scanf("%d", vip); // No warning. in test_qualifiers()
166 scanf("%n", vip); // No warning. in test_qualifiers()
167 scanf("%c", vcp); // No warning. in test_qualifiers()
171 scanf("%d", (ip_t)0); // No warning. in test_qualifiers()
172 …scanf("%d", (cip_t)0); // expected-warning{{format specifies type 'int *' but the argument has typ… in test_qualifiers()
176 scanf(0 ? "%s" : "%d", i); // no warning in check_conditional_literal()
177 scanf(1 ? "%s" : "%d", i); // expected-warning{{format specifies type 'char *'}} in check_conditional_literal()
178 scanf(0 ? "%d %d" : "%d", i); // no warning in check_conditional_literal()
179 scanf(1 ? "%d %d" : "%d", i); // expected-warning{{more '%' conversions than data arguments}} in check_conditional_literal()
180 scanf(0 ? "%d %d" : "%d", i, s); // expected-warning{{data argument not used}} in check_conditional_literal()
181 scanf(1 ? "%d %s" : "%d", i, s); // no warning in check_conditional_literal()
182 scanf(i ? "%d %s" : "%d", i, s); // no warning in check_conditional_literal()
183 scanf(i ? "%d" : "%d", i, s); // expected-warning{{data argument not used}} in check_conditional_literal()
184 scanf(i ? "%s" : "%d", s); // expected-warning{{format specifies type 'int *'}} in check_conditional_literal()