removing TASK_ASSERT to avoid using goto/continue statement with rtos configure
fix some compiler warnings