Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
GCC strict compilation failure #27
The API_LOG function in dji_sdk_lib\DJI_Type.h is producing unsuppressible error when compiling under stricter mode. People who are using strict compilation as good practice therefore cannot use DJI SDK. Fortunately required change is small. I have modified API_LOG which passes strict compilation and is slightly better and safer than before. It would be great if below change can be applied so we can use strict compilation.
To enable strict compilation, use following line in CMakeLists.txt (or replace existing one).
This will produce LOT of errors which would be good to resolve and uncover lot of issues in the code. However given the volume of these it might take longer to cleans your source code. We can currently suppress all of these errors except for above (because GCC doesn't support its suppression yet). So right now only above change is important.