Skip to content

Commit

Permalink
Update armv8m_mpu.h - adding void
Browse files Browse the repository at this point in the history
Removes error:
error: old-style function definition [-Werror=old-style-definition]
  • Loading branch information
blckmn authored and JonatanAntoni committed Jan 13, 2025
1 parent c0c86bc commit ad0be2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMSIS/Core/Include/m-profile/armv8m_mpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ typedef struct {
\brief Read MPU Type Register
\return Number of MPU regions
*/
__STATIC_INLINE uint32_t ARM_MPU_TYPE()
__STATIC_INLINE uint32_t ARM_MPU_TYPE(void)
{
return ((MPU->TYPE) >> 8);
}
Expand Down

0 comments on commit ad0be2a

Please sign in to comment.