[Lldb-commits] [lldb] bb33f92 - [lldb/Test] Add missing stdio.h includes
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Tue Aug 4 13:08:22 PDT 2020
Author: Jonas Devlieghere
Date: 2020-08-04T13:08:14-07:00
New Revision: bb33f925a673f3bb9793d2157c9d3d46d9ad7f25
URL: https://github.com/llvm/llvm-project/commit/bb33f925a673f3bb9793d2157c9d3d46d9ad7f25
DIFF: https://github.com/llvm/llvm-project/commit/bb33f925a673f3bb9793d2157c9d3d46d9ad7f25.diff
LOG: [lldb/Test] Add missing stdio.h includes
Fixes error: implicit declaration of function 'printf' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
Added:
Modified:
lldb/test/API/commands/target/basic/a.c
lldb/test/API/lang/c/global_variables/main.c
Removed:
################################################################################
diff --git a/lldb/test/API/commands/target/basic/a.c b/lldb/test/API/commands/target/basic/a.c
index b8157275f1a9..9ce587e41453 100644
--- a/lldb/test/API/commands/target/basic/a.c
+++ b/lldb/test/API/commands/target/basic/a.c
@@ -1,3 +1,5 @@
+#include <stdio.h>
+
int main(int argc, const char* argv[])
{
int *null_ptr = 0;
diff --git a/lldb/test/API/lang/c/global_variables/main.c b/lldb/test/API/lang/c/global_variables/main.c
index 864f094edd48..eb7720a6b048 100644
--- a/lldb/test/API/lang/c/global_variables/main.c
+++ b/lldb/test/API/lang/c/global_variables/main.c
@@ -1,3 +1,5 @@
+#include <stdio.h>
+
int g_common_1; // Not initialized on purpose to cause it to be undefined external in .o file
int g_file_global_int = 42;
static const int g_file_static_int = 2;
More information about the lldb-commits
mailing list