Skip to content

Commit

Permalink
suppress warnings for Arm Compiler 6.21
Browse files Browse the repository at this point in the history
  • Loading branch information
GorgonMeducer committed Oct 19, 2023
1 parent ad0da94 commit 1cdb623
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,4 @@ examples/\[template\]\[cmsis-rtos2\]/RTE/_STM32F746G-Discovery-AC5/RTE_Component
examples/\[template\]\[bare-metal\]/project/mdk/RTE/_V2M-MPS3-CM85/RTE_Components.h
examples/\[template\]\[bare-metal\]/project/mdk/RTE/_V2M-MPS2-CM4/RTE_Components.h
examples/\[template\]\[cmsis-rtos2\]/RTE/_V2M-MPS2-CM4/RTE_Components.h
*.db
4 changes: 2 additions & 2 deletions Helper/Include/arm_2d_helper_pfb.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
* Title: #include "arm_2d_helper_pfb.h"
* Description: Public header file for the PFB helper service
*
* $Date: 15. Sept 2023
* $Revision: V.1.6.1
* $Date: 19. Oct 2023
* $Revision: V.1.6.2
*
* Target Processor: Cortex-M cores
* -------------------------------------------------------------------- */
Expand Down
2 changes: 1 addition & 1 deletion Helper/Source/arm_2d_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ uintptr_t arm_2d_port_new_semaphore(void)
__WEAK
void arm_2d_port_free_semaphore(uintptr_t pSemaphore)
{

ARM_2D_UNUSED(pSemaphore);
}


Expand Down
9 changes: 6 additions & 3 deletions Helper/Source/arm_2d_helper_pfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
* Title: #include "arm_2d_helper_pfb.c"
* Description: the pfb helper service source code
*
* $Date: 15. Sept 2023
* $Revision: V.1.6.1
* $Date: 19. Oct 2023
* $Revision: V.1.6.2
*
* Target Processor: Cortex-M cores
* -------------------------------------------------------------------- */
Expand Down Expand Up @@ -1042,6 +1042,8 @@ void __arm_2d_helper_3fb_dma_copy( arm_2d_helper_3fb_t *ptThis,
uint32_t nDataItemCount,
uint_fast8_t chDataItemSize)
{
ARM_2D_UNUSED(pObj);

memcpy((void *)pnTarget, (const void *)pnSource, nDataItemCount * chDataItemSize);

arm_2d_helper_3fb_report_dma_copy_complete(ptThis);
Expand Down Expand Up @@ -1253,11 +1255,12 @@ ARM_NONNULL(1,2)
bool __arm_2d_helper_3fb_draw_bitmap( arm_2d_helper_3fb_t *ptThis,
const arm_2d_pfb_t *ptPFB)
{

assert(NULL != ptThis);
assert(NULL != ptPFB);
assert(0 == (this.tCFG.chPixelBits & 0x07));

uint_fast8_t chBytesPerPixel = this.tCFG.chPixelBits >> 3;
//uint_fast8_t chBytesPerPixel = this.tCFG.chPixelBits >> 3;
int16_t iLCDWidth = this.tCFG.tScreenSize.iWidth;
int16_t iLCDHeight = this.tCFG.tScreenSize.iHeight;
uintptr_t pnAddress = __arm_2d_helper_3fb_get_drawing_pointer(ptThis, ptPFB->bIsNewFrame);
Expand Down
2 changes: 2 additions & 0 deletions Library/Include/arm_2d.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ extern "C" {
# pragma clang diagnostic ignored "-Wgnu-empty-initializer"
# pragma clang diagnostic ignored "-Wshadow"
# pragma clang diagnostic ignored "-Wconditional-uninitialized"
# pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
# pragma clang diagnostic ignored "-Wc23-extensions"
#elif __IS_COMPILER_GCC__
# pragma GCC diagnostic ignored "-Wpedantic"
# pragma GCC diagnostic ignored "-Wmissing-braces"
Expand Down
2 changes: 1 addition & 1 deletion examples/[template][bare-metal]/arm_2d_scene_meter.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
# pragma clang diagnostic ignored "-Wgnu-statement-expression"
# pragma clang diagnostic ignored "-Wdeclaration-after-statement"
# pragma clang diagnostic ignored "-Wunused-function"
# pragma clang diagnostic ignored "-Wmissing-declarations"
# pragma clang diagnostic ignored "-Wmissing-declarations"
#elif __IS_COMPILER_ARM_COMPILER_5__
#elif __IS_COMPILER_IAR__
# pragma diag_suppress=Pa089,Pe188,Pe177,Pe174
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
# pragma clang diagnostic ignored "-Wunused-function"
# pragma clang diagnostic ignored "-Wmissing-declarations"
# pragma clang diagnostic ignored "-Wdouble-promotion"
# pragma clang diagnostic ignored "-Wbad-function-cast"
# pragma clang diagnostic ignored "-Wbad-function-cast"
# pragma clang diagnostic ignored "-Wimplicit-int-conversion"
#elif __IS_COMPILER_ARM_COMPILER_5__
#elif __IS_COMPILER_IAR__
# pragma diag_suppress=Pa089,Pe188,Pe177,Pe174
Expand Down
1 change: 1 addition & 0 deletions examples/common/platform/mps3/stdout_USART.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
# pragma clang diagnostic ignored "-Wmissing-braces"
# pragma clang diagnostic ignored "-Wunused-const-variable"
# pragma clang diagnostic ignored "-Wmissing-prototypes"
# pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
#endif

/* IO definitions (access restrictions to peripheral registers) */
Expand Down

0 comments on commit 1cdb623

Please sign in to comment.