Commit e84ca70
authored
Fix false positive -Wrestrict warning in HttpUserAgent.h with GCC 12 (#12715)
GCC 12 produces a false positive -Wrestrict warning when assigning the
string literal "-" to std::string in HttpUserAgent::set_txn(). Change
to use char literal '-' instead of string literal "-" to avoid the
warning, similar to commit 355a9ee.1 parent c183dd1 commit e84ca70
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
| 181 | + | |
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| |||
0 commit comments