Commit 227c863
committed
[Darwin] Guard CHIP source-file/line block under CHIP_CONFIG_ERROR_SOURCE
Per Copilot review on PR project-chip#72211:
- ChipError::GetFile() / GetLine() are only defined when CHIP is built with
CHIP_CONFIG_ERROR_SOURCE; builds with that flag disabled fail to compile.
Wrap the source-info userInfo block under the same #if so the keys are
simply absent on those builds.
- Initialize legacyAdditionalUserInfo to nil at declaration. ARC zero-inits
__strong locals already, but the explicit nil makes the contract clear.1 parent 1c0a11c commit 227c863
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| 173 | + | |
173 | 174 | | |
174 | 175 | | |
175 | 176 | | |
| |||
179 | 180 | | |
180 | 181 | | |
181 | 182 | | |
| 183 | + | |
182 | 184 | | |
183 | 185 | | |
184 | 186 | | |
| |||
0 commit comments