Skip to content

Commit 4bd47bc

Browse files
committed
disable bad gcc 6 warning
1 parent fc1a27b commit 4bd47bc

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

hw/bsp/family_support.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ if (NOT TARGET _family_support_marker)
113113
if (CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 8.0)
114114
target_compile_options(${TARGET} PUBLIC -Wcast-function-type -Wstrict-overflow)
115115
endif()
116+
117+
# GCC 6
118+
if (CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 6.0)
119+
target_compile_options(${TARGET} PUBLIC -Wno-strict-aliasing)
120+
endif()
116121
endif()
117122
endfunction()
118123

src/host/usbh.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,9 @@ static bool usbh_control_xfer_cb (uint8_t dev_addr, uint8_t ep_addr, xfer_result
655655
TU_ASSERT( hcd_edpt_xfer(rhport, dev_addr, tu_edpt_addr(0, request->bmRequestType_bit.direction), _ctrl_xfer.buffer, request->wLength) );
656656
return true;
657657
}
658+
#if __GNUC__ >= 7
658659
__attribute__((fallthrough));
660+
#endif
659661

660662
case CONTROL_STAGE_DATA:
661663
if (request->wLength)

0 commit comments

Comments
 (0)