Skip to content
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

[solved] -Wno-error=misleading-indentation error while compiling upx #1493

Closed
ghost opened this issue Aug 17, 2016 · 1 comment
Closed

[solved] -Wno-error=misleading-indentation error while compiling upx #1493

ghost opened this issue Aug 17, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 17, 2016

Hello,
Upon making mxe using
make gcc
I encountered an error with the package upx.
It is because of the compiler option misleading-indentation which is implemented as of g++6

For those with g++ version <6 the error can be fixed by removing part of the lines 50-51 in /opt/mxe/src/upx.mk

old line:
echo "CXXFLAGS=-Wno-error=unused-local-typedefs -Wno-error=misleading-indentation" || \ echo "CXXFLAGS=-Wno-error=misleading-indentation") \

new lines:
echo "CXXFLAGS=-Wno-error=unused-local-typedefs")\

Might want to consider adding some qualifier to that compiler option

@ghost ghost changed the title [solved] -Wno-error=misleading-indentation [solved] -Wno-error=misleading-indentation error while compiling upx Aug 17, 2016
@tonytheodore
Copy link
Member

Fixed in #1496 by disabling -Werror.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant