anestisb / vdexExtractor

Tool to decompile & extract Android Dex bytecode from Vdex files
Apache License 2.0
1k stars 215 forks source link

Turn off GCC to treat warnings as errors #55

Closed gesangtome closed 4 years ago

gesangtome commented 4 years ago

Incoming flags -Wno-address-of-packed-member

Signed-off-by: 弱弱的胖橘猫丷 gesangtome@foxmail.com

anestisb commented 4 years ago

@Flowertome which gcc version caused issue with the above? Want to double check the code and see if warning is actual a false positive.

gesangtome commented 4 years ago

@anestisb My gcc version is 9.2.1 after testing, it was found that -Werror=-no-address-of-packed-member error occurred when -Wno-address-of-packed-member was not added After adding this flag, the error is eliminated and the test executable does not find the problem. Please tell me if you need a GCC error log

anestisb commented 4 years ago

Resolved issue with https://github.com/anestisb/vdexExtractor/commit/9990fa00a59639a81d0d2af7e6cd5621f9df1eba. Disabling the matching warning type is no longer needed. Can you please check that is also works in your environment?

gesangtome commented 4 years ago

@anestisb Tested problem has been solved, thank you for your answer