Purge PlatformIntType and PlatformUIntType#3719
Conversation
There was a problem hiding this comment.
CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
| } | ||
|
|
||
| SocketIpStatus IpSocket::setupTimeouts(PlatformIntType socketFd) { | ||
| SocketIpStatus IpSocket::setupTimeouts(int socketFd) { |
Check notice
Code scanning / CodeQL
Long function without assertion Note
|
|
||
|
|
||
| SocketIpStatus UdpSocket::bind(const PlatformIntType fd) { | ||
| SocketIpStatus UdpSocket::bind(const int fd) { |
Check notice
Code scanning / CodeQL
Long function without assertion Note
| #endif | ||
|
|
||
| void ActiveComponentBase::start(FwTaskPriorityType priority, Os::Task::ParamType stackSize, Os::Task::ParamType cpuAffinity, Os::Task::ParamType identifier) { | ||
| void ActiveComponentBase::start(FwTaskPriorityType priority, FwSizeType stackSize, FwSizeType cpuAffinity, FwTaskIdType identifier) { |
Check notice
Code scanning / CodeQL
Long function without assertion Note
|
|
||
| PlatformIntType set_stack_size(pthread_attr_t& attributes, const Os::Task::Arguments& arguments) { | ||
| PlatformIntType status = PosixTaskHandle::SUCCESS; | ||
| int set_stack_size(pthread_attr_t& attributes, const Os::Task::Arguments& arguments) { |
Check notice
Code scanning / CodeQL
Long function without assertion Note
| } | ||
|
|
||
| PlatformIntType set_priority_params(pthread_attr_t& attributes, const Os::Task::Arguments& arguments) { | ||
| int set_priority_params(pthread_attr_t& attributes, const Os::Task::Arguments& arguments) { |
Check notice
Code scanning / CodeQL
Long function without assertion Note
| } | ||
|
|
||
| Directory::Status errno_to_directory_status(PlatformIntType errno_input) { | ||
| Directory::Status errno_to_directory_status(int errno_input) { |
Check notice
Code scanning / CodeQL
Long function without assertion Note
| } | ||
|
|
||
| RawTime::Status errno_to_rawtime_status(PlatformIntType errno_input) { | ||
| RawTime::Status errno_to_rawtime_status(int errno_input) { |
Check notice
Code scanning / CodeQL
Long function without assertion Note
| } | ||
|
|
||
| Task::Status posix_status_to_task_status(PlatformIntType posix_status) { | ||
| Task::Status posix_status_to_task_status(int posix_status) { |
Check notice
Code scanning / CodeQL
Long function without assertion Note
| } | ||
|
|
||
| Mutex::Status posix_status_to_mutex_status(PlatformIntType posix_status){ | ||
| Mutex::Status posix_status_to_mutex_status(int posix_status){ |
Check notice
Code scanning / CodeQL
Long function without assertion Note
| } | ||
|
|
||
| ConditionVariable::Status posix_status_to_conditional_status(PlatformIntType posix_status) { | ||
| ConditionVariable::Status posix_status_to_conditional_status(int posix_status) { |
Check notice
Code scanning / CodeQL
Long function without assertion Note
| void IpSocket::shutdown(const SocketDescriptor& socketDescriptor) { | ||
| errno = 0; | ||
| PlatformIntType status = ::shutdown(socketDescriptor.fd, SHUT_RDWR); | ||
| int status = ::shutdown(socketDescriptor.fd, SHUT_RDWR); |
Check warning
Code scanning / CodeQL
Unchecked function argument Warning
| PlatformIntType clientFd = -1; | ||
| PlatformIntType serverFd = socketDescriptor.serverFd; | ||
| int clientFd = -1; | ||
| int serverFd = socketDescriptor.serverFd; |
Check warning
Code scanning / CodeQL
Unchecked function argument Warning
| // Standard multithreading tasks use the task loop to respectively call the state machine | ||
| Os::Task::taskRoutine routine = (m_task.isCooperative()) ? this->s_taskStateMachine : this->s_taskLoop; | ||
| Os::Task::Arguments arguments(taskName, routine, this, priority, stackSize, cpuAffinity, static_cast<PlatformUIntType>(identifier)); | ||
| Os::Task::Arguments arguments(taskName, routine, this, priority, stackSize, cpuAffinity, identifier); |
Check warning
Code scanning / CodeQL
Unchecked function argument Warning
| // Standard multithreading tasks use the task loop to respectively call the state machine | ||
| Os::Task::taskRoutine routine = (m_task.isCooperative()) ? this->s_taskStateMachine : this->s_taskLoop; | ||
| Os::Task::Arguments arguments(taskName, routine, this, priority, stackSize, cpuAffinity, static_cast<PlatformUIntType>(identifier)); | ||
| Os::Task::Arguments arguments(taskName, routine, this, priority, stackSize, cpuAffinity, identifier); |
Check warning
Code scanning / CodeQL
Unchecked function argument Warning
| // Standard multithreading tasks use the task loop to respectively call the state machine | ||
| Os::Task::taskRoutine routine = (m_task.isCooperative()) ? this->s_taskStateMachine : this->s_taskLoop; | ||
| Os::Task::Arguments arguments(taskName, routine, this, priority, stackSize, cpuAffinity, static_cast<PlatformUIntType>(identifier)); | ||
| Os::Task::Arguments arguments(taskName, routine, this, priority, stackSize, cpuAffinity, identifier); |
Check warning
Code scanning / CodeQL
Unchecked function argument Warning
| // Standard multithreading tasks use the task loop to respectively call the state machine | ||
| Os::Task::taskRoutine routine = (m_task.isCooperative()) ? this->s_taskStateMachine : this->s_taskLoop; | ||
| Os::Task::Arguments arguments(taskName, routine, this, priority, stackSize, cpuAffinity, static_cast<PlatformUIntType>(identifier)); | ||
| Os::Task::Arguments arguments(taskName, routine, this, priority, stackSize, cpuAffinity, identifier); |
Check warning
Code scanning / CodeQL
Unchecked function argument Warning
| formatStatus = Fw::FormatStatus::SIZE_OVERFLOW; | ||
| } else { | ||
| PlatformIntType needed_size = vsnprintf(destination, static_cast<size_t>(maximumSize), formatString, args); | ||
| int needed_size = vsnprintf(destination, static_cast<size_t>(maximumSize), formatString, args); |
Check warning
Code scanning / CodeQL
Unchecked function argument Warning
| break; | ||
| } | ||
| PlatformIntType descriptor = ::open(filepath, mode_flags, USER_FLAGS); | ||
| int descriptor = ::open(filepath, mode_flags, USER_FLAGS); |
Check warning
Code scanning / CodeQL
Unchecked function argument Warning
|
|
||
| while (true) { | ||
| PlatformIntType status = nanosleep(&sleep_interval, &remaining_interval); | ||
| int status = nanosleep(&sleep_interval, &remaining_interval); |
Check warning
Code scanning / CodeQL
Use of delay function Warning
| stackSize, | ||
| cpuAffinity, | ||
| static_cast<PlatformUIntType>(identifier))); | ||
| static_cast<FwTaskIdType>(identifier))); |
Check warning
Code scanning / CodeQL
Unchecked function argument Warning
Change Description
Removing deprecated
PlatformIntTypeandPlatformUIntType.