Skip to content

Commit 155fa6b

Browse files
authored
Merge pull request #1330 from CesiumGS/raster-overlay-uninitialized
Fix a maybe uninitialized error
2 parents f032db7 + 5ea5771 commit 155fa6b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
- `Cesium3DTilesetSelection::Tileset::getRootTileAvailableEvent` will now resolve even when a `Tileset` is constructed with invalid source parameters, instead of hanging indefinitely.
1616
- Fixed compilation error with MSVC when using custom `CesiumITwinClient::PagedList` types.
17+
- Fixed a "maybe uninitialized" error in `GeoJsonDocumentRasterOverlay` signaled by gcc 15.2.
1718

1819
### v0.58.0 - 2026-03-02
1920

CesiumRasterOverlays/src/GeoJsonDocumentRasterOverlay.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ void addPrimitivesToData(
407407
const VectorStyle& style,
408408
const Ellipsoid& ellipsoid) {
409409
std::optional<GlobeRectangle> rect;
410-
double maxLineWidthPixels;
410+
double maxLineWidthPixels = 0.0;
411411
std::visit(
412412
RectangleAndLineWidthFromObjectVisitor{
413413
rect,

0 commit comments

Comments
 (0)