BasePrinter: handle new nodiscard on GetSourceLocation
More recent protobuf versions added nodiscard to the GetSourceLocation
function, check the return value before proceeding. This is safe to pick
back to older branches.
Pick-to: 6.11 6.10 6.8
Change-Id: I021462739f2a736a239f1d94c7eadb1c5d4d7932
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
| commit | e45661454fe4fc863f8bd4277f5d8edd92e78408 |
| parent | fa142e17c8a8526623d774f7f86ea8ac021fe959 |
| author | Dennis Oberst <dennis.oberst@qt.io> |
| committer | Dennis Oberst <dennis.oberst@qt.io> |
| commit time | Mon, 20 Apr 2026 11:53:58 +0000 |