Skip to content

Commit 9875400

Browse files
committed
Fix warning
1 parent 9b0386b commit 9875400

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcxx/test/std/input.output/file.streams/c.files/gets-removed.verify.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212

1313
#include <cstdio>
1414

15-
void f() {
16-
(void)std::gets((char*)NULL); // expected-error {{no member named 'gets' in namespace 'std'}}
15+
void f(char const* str) {
16+
(void)std::gets(str); // expected-error {{no member named 'gets' in namespace 'std'}}
1717
}

0 commit comments

Comments
 (0)