Skip to content

Commit 71025dd

Browse files
Eugeniy Paltsevnashif
authored andcommitted
samples: cpp_synchronization: fix 'main' signature
'main' function should retun 'int' and not 'void'. Otherwise some picky compilers (like ARC MWDT) would warn about that. Signed-off-by: Eugeniy Paltsev <[email protected]>
1 parent 967aaee commit 71025dd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

samples/cpp_synchronization/src/main.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ void coop_thread_entry(void)
133133
}
134134
}
135135

136-
void main(void)
136+
int main(void)
137137
{
138138
struct k_timer timer;
139139

@@ -154,4 +154,6 @@ void main(void)
154154
/* Wait for coop thread to let us have a turn */
155155
sem_main.wait();
156156
}
157+
158+
return 0;
157159
}

0 commit comments

Comments
 (0)