summaryrefslogtreecommitdiff
path: root/src/osal
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2025-10-29 19:15:53 +0700
committerGitHub <[email protected]>2025-10-29 19:15:53 +0700
commit3ff54153d42c83fc0a1e13106c6632c3237b1670 (patch)
treea6ec29546beafa69c752a8b6dfad5c2b809633cd /src/osal
parenta6efc7d722f7869da76cf70e37ebf3593c66484e (diff)
parent78bd6230649aee3f7731ffbce603742f31c2295e (diff)
Merge pull request #3320 from hathach/more-sast
fix warnings
Diffstat (limited to 'src/osal')
-rw-r--r--src/osal/osal.h6
-rw-r--r--src/osal/osal_none.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/osal/osal.h b/src/osal/osal.h
index 658b18584..44521620f 100644
--- a/src/osal/osal.h
+++ b/src/osal/osal.h
@@ -24,8 +24,8 @@
* This file is part of the TinyUSB stack.
*/
-#ifndef _TUSB_OSAL_H_
-#define _TUSB_OSAL_H_
+#ifndef TUSB_OSAL_H_
+#define TUSB_OSAL_H_
#ifdef __cplusplus
extern "C" {
@@ -101,4 +101,4 @@ typedef void (*osal_task_func_t)(void* param);
}
#endif
-#endif /* _TUSB_OSAL_H_ */
+#endif
diff --git a/src/osal/osal_none.h b/src/osal/osal_none.h
index 6f9b8b0dc..bc86dcb28 100644
--- a/src/osal/osal_none.h
+++ b/src/osal/osal_none.h
@@ -156,7 +156,7 @@ typedef osal_queue_def_t* osal_queue_t;
}
TU_ATTR_ALWAYS_INLINE static inline osal_queue_t osal_queue_create(osal_queue_def_t* qdef) {
- tu_fifo_clear(&qdef->ff);
+ (void) tu_fifo_clear(&qdef->ff);
return (osal_queue_t) qdef;
}