noteprintf: fix compile warnings
noteprintf_main.c:52:7: warning: unused variable 'binary' [-Wunused-variable] 52 | } binary = Fix typo of sched. Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
This commit is contained in:
parent
a7011eb6f6
commit
0ed4ca1767
@ -45,17 +45,7 @@
|
|||||||
|
|
||||||
int main(int argc, FAR char *argv[])
|
int main(int argc, FAR char *argv[])
|
||||||
{
|
{
|
||||||
struct binary
|
char *str = "sched note test";
|
||||||
{
|
|
||||||
uint8_t val1;
|
|
||||||
uint8_t val2;
|
|
||||||
} binary =
|
|
||||||
{
|
|
||||||
.val1 = 0x01,
|
|
||||||
.val2 = 0x02
|
|
||||||
};
|
|
||||||
|
|
||||||
char *str = "shced note test";
|
|
||||||
int count = 0;
|
int count = 0;
|
||||||
char c = 1;
|
char c = 1;
|
||||||
short s = 2;
|
short s = 2;
|
||||||
@ -80,7 +70,7 @@ int main(int argc, FAR char *argv[])
|
|||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
sched_note_printf(NOTE_TAG_ALWAYS,
|
sched_note_printf(NOTE_TAG_ALWAYS,
|
||||||
"shced note test count = %d.", count++);
|
"sched note test count = %d.", count++);
|
||||||
sched_note_mark(NOTE_TAG_ALWAYS, str);
|
sched_note_mark(NOTE_TAG_ALWAYS, str);
|
||||||
sched_note_printf(NOTE_TAG_ALWAYS, "%hhd", c);
|
sched_note_printf(NOTE_TAG_ALWAYS, "%hhd", c);
|
||||||
sched_note_printf(NOTE_TAG_ALWAYS, "%hd", s);
|
sched_note_printf(NOTE_TAG_ALWAYS, "%hd", s);
|
||||||
|
Loading…
Reference in New Issue
Block a user