Changeset View
Changeset View
Standalone View
Standalone View
packages/Python/lldbsuite/test/tools/lldb-mi/main.cpp
//===-- main.cpp ------------------------------------------------*- C++ -*-===// | //===-- main.cpp ------------------------------------------------*- C++ -*-===// | ||||
// | // | ||||
// The LLVM Compiler Infrastructure | // The LLVM Compiler Infrastructure | ||||
// | // | ||||
// This file is distributed under the University of Illinois Open Source | // This file is distributed under the University of Illinois Open Source | ||||
// License. See LICENSE.TXT for details. | // License. See LICENSE.TXT for details. | ||||
// | // | ||||
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
#include <cstdio> | #include <cstdio> | ||||
#ifdef _WIN32 | |||||
#include <direct.h> | |||||
#define getcwd _getcwd // suppress "deprecation" warning | |||||
#else | |||||
#include <unistd.h> | |||||
#endif | |||||
int | int | ||||
main(int argc, char const *argv[]) | main(int argc, char const *argv[]) | ||||
{ | { | ||||
int a = 10; | int a = 10; | ||||
abidh: This declaration looks redundant. | |||||
aetfAuthorUnsubmitted Not Done ReplyInline ActionsIt's used in TestMiGdbSetShow.test_lldbmi_gdb_set_ouptut_radix. aetf: It's used in `TestMiGdbSetShow.test_lldbmi_gdb_set_ouptut_radix`. | |||||
char buf[512]; | |||||
char *ans = getcwd(buf, sizeof(buf)); | |||||
if (ans) { | |||||
printf("cwd: %s\n", ans); | |||||
} | |||||
printf("argc=%d\n", argc); // BP_printf | printf("argc=%d\n", argc); // BP_printf | ||||
return 0; | return 0; | ||||
} | } |
This declaration looks redundant.