Showing the changes to python (1 of 1 file). Show all
Unified · Split
| @@ -105,10 +105,10 @@ def get_c_declarations(header=header, usedouble=False): · 104 unmodified lines | ||
| 105 | 105 | assert proc, 'Proc was none' |
| 106 | 106 | cpp_output = proc.stdout.read() |
| 107 | 107 | err_output = proc.stderr.read() |
| 108 | + if err_output: | |
| 109 | + print("Warning: preprocessor produced errors or warnings:\n%s" % err_output) | |
| 108 | 110 | if not cpp_output: |
| 109 | 111 | raise Exception("preprocessor output is empty:\n%s" % err_output) |
| 110 | − elif err_output: | |
| 111 | − print("Warning: preprocessor produced warnings:\n%s" % err_output) | |
| 112 | 112 | if not isinstance(cpp_output, list): |
| 113 | 113 | cpp_output = [l.strip() for l in cpp_output.decode('utf8').split('\n')] |
| 114 | 114 | |