Skip to content

Commit dcc4feb

Browse files
committed
Use function prototypes when appropriate; NFC
1 parent 1d1b089 commit dcc4feb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

clang/test/Analysis/taint-generic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ void testUnknownFunction(void (*foo)(void)) {
407407
foo(); // no-crash
408408
}
409409

410-
void testProctitleFalseNegative() {
410+
void testProctitleFalseNegative(void) {
411411
char flag[80];
412412
fscanf(stdin, "%79s", flag);
413413
char *argv[] = {"myapp", flag};

clang/test/Driver/riscv-default-features.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
// RV64: "target-features"="+64bit,+a,+c,+m,+relax,-save-restore"
55

66
// Dummy function
7-
int foo(){
7+
int foo(void){
88
return 3;
99
}

clang/test/OpenMP/atomic_compare_codegen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#ifndef HEADER
1313
#define HEADER
1414

15-
void foo() {
15+
void foo(void) {
1616
char cx, ce, cd;
1717
unsigned char ucx, uce, ucd;
1818
short sx, se, sd;

0 commit comments

Comments
 (0)