mirror of https://github.com/ArduPilot/ardupilot
waf: fix undef warnings in examples
Fix warnings like this: <command-line>:0:21: warning: "APM_BUILD_DataFlash_test" is not defined [-Wundef] /home/lucas/p/dronecode/ardupilot/libraries/AP_Vehicle/AP_Vehicle_Type.h:36:41: note: in expansion of macro ‘APM_BUILD_DIRECTORY’ #define APM_BUILD_TYPE(type) ((type) == APM_BUILD_DIRECTORY) ^ These happen because we are trying to set APM_BUILD_DIRECTORY to undefined values. We should rather default to the APM_BUILD_DIRECTORY == APM_BUILD_UNKNOWN
This commit is contained in:
parent
b5d3094738
commit
2c029ae1f9
|
@ -136,7 +136,7 @@ def ap_program(bld,
|
|||
@conf
|
||||
def ap_example(bld, **kw):
|
||||
kw['program_groups'] = 'examples'
|
||||
ap_program(bld, **kw)
|
||||
ap_program(bld, use_legacy_defines=False, **kw)
|
||||
|
||||
# NOTE: Code in libraries/ is compiled multiple times. So ensure each
|
||||
# compilation is independent by providing different index for each.
|
||||
|
|
Loading…
Reference in New Issue