]> git.donarmstrong.com Git - qmk_firmware.git/commit
gcc 8.10 compilation fix (#2914)
authorsameehj <sameeh.j@gmail.com>
Thu, 10 May 2018 03:39:46 +0000 (06:39 +0300)
committerJack Humbert <jack.humb@gmail.com>
Thu, 10 May 2018 03:39:46 +0000 (23:39 -0400)
commit03516d546009af0ca4d46989214c8153c70b0712
treeafa93c60220a80ed2e88fa5eb9e4382a04c9fcdd
parent00596d55e34c003d55a530366bedfb2ea467bedc
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>
lib/lufa/LUFA/Drivers/USB/Class/Common/HIDParser.c
lib/lufa/LUFA/Drivers/USB/Core/Events.h