summaryrefslogtreecommitdiffstats
path: root/lib/lufa/LUFA/Drivers/USB/Class
diff options
context:
space:
mode:
authorsameehj <sameeh.j@gmail.com>2018-05-10 05:39:46 +0200
committerJack Humbert <jack.humb@gmail.com>2018-05-10 05:39:46 +0200
commit03516d546009af0ca4d46989214c8153c70b0712 (patch)
treeafa93c60220a80ed2e88fa5eb9e4382a04c9fcdd /lib/lufa/LUFA/Drivers/USB/Class
parent00596d55e34c003d55a530366bedfb2ea467bedc (diff)
downloadqmk_firmware-03516d546009af0ca4d46989214c8153c70b0712.tar.gz
qmk_firmware-03516d546009af0ca4d46989214c8153c70b0712.tar.xz
gcc 8.10 compilation fix (#2914)
* Use memmove instead of memcpy gcc 8.1 gives the following error: lib/lufa/LUFA/Drivers/USB/Class/Common/HIDParser.c:93:5: error: 'memcpy' accessing 42 bytes at offsets 28 and 0 overlaps 14 bytes at offset 28 [-Werror=restrict] This patch resolve this by using memmove instead Signed-off-by: Sameeh <Sameeh Jubran> * Remove ATTR_CONST from a void returning function gcc 8.10 gives the following error when attempting to compile lib/lufa/LUFA/Drivers/USB/Core/Events.h:334:5: error: 'const' attribute on function returning 'void' [-Werror=attributes] Signed-off-by: Sameeh <Sameeh Jubran>
Diffstat (limited to 'lib/lufa/LUFA/Drivers/USB/Class')
-rw-r--r--lib/lufa/LUFA/Drivers/USB/Class/Common/HIDParser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lufa/LUFA/Drivers/USB/Class/Common/HIDParser.c b/lib/lufa/LUFA/Drivers/USB/Class/Common/HIDParser.c
index 62f10c4e2..9250cad33 100644
--- a/lib/lufa/LUFA/Drivers/USB/Class/Common/HIDParser.c
+++ b/lib/lufa/LUFA/Drivers/USB/Class/Common/HIDParser.c
@@ -90,7 +90,7 @@ uint8_t USB_ProcessHIDReport(const uint8_t* ReportData,
if (CurrStateTable == &StateTable[HID_STATETABLE_STACK_DEPTH - 1])
return HID_PARSE_HIDStackOverflow;
- memcpy((CurrStateTable + 1),
+ memmove(CurrStateTable + 1,
CurrStateTable,
sizeof(HID_ReportItem_t));