-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plc/plc.h: fix build with gcc 10 #141
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the patch Fabrice. Looking at the nearby structures in this file it looks like most of them also create a type using typedef. I think this may have been the original intent but was missed by the original author. Can you modify your pull request to do the same?
Thanks!
Add typedef to plcproperty structure to avoid the following build failure with gcc 10 (which defaults to -fno-common): /home/buildroot/autobuild/run/instance-3/output-1/host/lib/gcc/arm-buildroot-linux-gnueabihf/10.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: rules.o:(.bss+0x0): multiple definition of `plcproperty'; pibruin.o:(.bss+0x0): first defined here Fixes: - http://autobuild.buildroot.org/results/6b3064b64dea3d4aaf219f787429c25918101483 Signed-off-by: Fabrice Fontaine <[email protected]>
Done |
Thanks, merged! |
…c5dc4e89cf2 Other changes: - Remove 0002-plc-plc.h-fix-build-with-gcc-10.patch as related MR qca/open-plc-utils#141 has been merged. Notable changes since last version: - Drop privileges after opening the channel file descriptor - Remove all checks for root permissions - Add chip identification for QCA7006AQ Signed-off-by: Kai Stuhlemmer (ebee Engineering) <[email protected]> Signed-off-by: Arnout Vandecappelle <[email protected]>
…c5dc4e89cf2 Other changes: - Remove 0002-plc-plc.h-fix-build-with-gcc-10.patch as related MR qca/open-plc-utils#141 has been merged. Notable changes since last version: - Drop privileges after opening the channel file descriptor - Remove all checks for root permissions - Add chip identification for QCA7006AQ Signed-off-by: Kai Stuhlemmer (ebee Engineering) <[email protected]> Signed-off-by: Arnout Vandecappelle <[email protected]>
…c5dc4e89cf2 Other changes: - Remove 0002-plc-plc.h-fix-build-with-gcc-10.patch as related MR qca/open-plc-utils#141 has been merged. Notable changes since last version: - Drop privileges after opening the channel file descriptor - Remove all checks for root permissions - Add chip identification for QCA7006AQ Signed-off-by: Kai Stuhlemmer (ebee Engineering) <[email protected]> Signed-off-by: Arnout Vandecappelle <[email protected]> (cherry picked from commit 39fef04)
…c5dc4e89cf2 Other changes: - Remove 0002-plc-plc.h-fix-build-with-gcc-10.patch as related MR qca/open-plc-utils#141 has been merged. Notable changes since last version: - Drop privileges after opening the channel file descriptor - Remove all checks for root permissions - Add chip identification for QCA7006AQ Signed-off-by: Kai Stuhlemmer (ebee Engineering) <[email protected]> Signed-off-by: Arnout Vandecappelle <[email protected]> (cherry picked from commit 39fef04)
Drop plcproperty from plc/plc.h to avoid the following build failure with gcc 10 (which defaults to -fno-common):
Fixes:
Signed-off-by: Fabrice Fontaine [email protected]