@@ -1154,16 +1154,13 @@ private function cleanUpClangOutput ($clang_output, $compiler_config, $option) {
1154
1154
if ((strpos ($ line , "In file included from " ) !== false
1155
1155
&& preg_match ('/([\w*\s*(!@#$%^&*()-+; \'{}\[\])*]+\.\w+:\d+:[\d+:]?)/ ' , $ line ))
1156
1156
|| (preg_match ('/([\w*\s*(!@#$%^&*()-+; \'{}\[\])*]+\.\w+:\d+:[\d+:]?)/ ' , $ line )
1157
- && strpos ($ line , "error: " ) !== false )
1158
- || (preg_match ('/([\w*\s*(!@#$%^&*()-+; \'{}\[\])*]+\.\w+:\d+:[\d+:]?)/ ' , $ line )
1159
- && strpos ($ line , "note: " ) !== false )) {
1157
+ && strpos ($ line , "error: " ) !== false )) {
1160
1158
1161
1159
if ($ header_found === false ) {
1162
1160
if (($ option == "non_asm " && preg_match ('/(\/compiler\.\w+\/libraries\/)/ ' , $ header )
1163
1161
|| strpos ($ header , $ compiler_config ["arduino_cores_dir " ]) !== false
1164
1162
|| (array_key_exists ("external_core_files " , $ compiler_config )
1165
- && strpos ($ header , $ compiler_config ["external_core_files " ]) !== false )
1166
- || strpos ($ header , "note: " ) !== false )
1163
+ && strpos ($ header , $ compiler_config ["external_core_files " ]) !== false ))
1167
1164
|| ($ option == "asm "
1168
1165
&& (strpos ($ header , "in asm " ) !== false
1169
1166
|| strpos ($ body , "in asm " ) !== false ))) {
@@ -1210,7 +1207,6 @@ private function cleanUpClangOutput ($clang_output, $compiler_config, $option) {
1210
1207
&& strpos ($ header , $ compiler_config ["arduino_cores_dir " ]) === false
1211
1208
&& (array_key_exists ("external_core_files " , $ compiler_config )
1212
1209
&& strpos ($ header , $ compiler_config ["external_core_files " ]) === false )
1213
- && strpos ($ header , "note: " ) === false
1214
1210
&& $ option == "non_asm " )
1215
1211
|| ($ option == "asm "
1216
1212
&& strpos ($ header , "in asm " ) === false
0 commit comments