Skip to content

Commit c8e1c94

Browse files
committed
Add some function prototypes; NFC
(This file is compiled with -pedantic enabled in some two-stage builds)
1 parent a60e9b3 commit c8e1c94

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/tools/c-index-test/c-index-test.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ extern char *dirname(char *);
6666
#endif
6767

6868
/** Return the default parsing options. */
69-
static unsigned getDefaultParsingOptions() {
69+
static unsigned getDefaultParsingOptions(void) {
7070
unsigned options = CXTranslationUnit_DetailedPreprocessingRecord;
7171

7272
if (getenv("CINDEXTEST_EDITING"))
@@ -3316,7 +3316,7 @@ typedef struct {
33163316
unsigned num_files;
33173317
} ImportedASTFilesData;
33183318

3319-
static ImportedASTFilesData *importedASTs_create() {
3319+
static ImportedASTFilesData *importedASTs_create(void) {
33203320
ImportedASTFilesData *p;
33213321
p = malloc(sizeof(ImportedASTFilesData));
33223322
assert(p);
@@ -4407,7 +4407,7 @@ static void print_usr(CXString usr) {
44074407
clang_disposeString(usr);
44084408
}
44094409

4410-
static void display_usrs() {
4410+
static void display_usrs(void) {
44114411
fprintf(stderr, "-print-usrs options:\n"
44124412
" ObjCCategory <class name> <category name>\n"
44134413
" ObjCClass <class name>\n"

0 commit comments

Comments
 (0)