Fix missing gcc dianostic push. Before making changes to GCC warnings, we should always push first then pop afterwards. bsp_api.h pop the diagnostic but doesn't push and mess up with the higher level warnings suppression e.g 'bsp_api.h' have a warnings when compiling with "-Wstrict-prototype" but application cannot suppress it using prama
Fix missing gcc dianostic push. Before making changes to GCC warnings, we should always push first then pop afterwards.
bsp_api.h
pop the diagnostic but doesn't push and mess up with the higher level warnings suppression e.g 'bsp_api.h' have a warnings when compiling with "-Wstrict-prototype" but application cannot suppress it using pramaSince bsp_api.h will pop --> restore the diagnostic before "-Wstrict-prototypes" is ignored i.e it discards the application pragma.