• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

uber / h3 / 42510626813
100%

Build:
DEFAULT BRANCH: master
Ran 08 Nov 2026 06:37PM UTC
Jobs 1
Files 24
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 Nov 2026 06:33PM UTC coverage: 99.758%. Remained the same
42510626813

push

github

web-flow
fix(vertex): initialize dirFaces in vertexRotations to silence uninitialized-variable warning (#1273)

vertexRotations() declares PentagonDirectionFaces dirFaces without an
initializer, then assigns it inside a while loop that breaks as soon as
it finds the matching pentagon base cell in the pentagonDirectionFaces
table. A guard (NEVER(p == NUM_PENTAGONS)) already returns E_FAILED if
the loop runs off the end without a match, before dirFaces is read -
but some compilers can't prove that connection from the loop/break
structure alone and warn that dirFaces "may be used uninitialized".

I verified this is a false positive, not a real logic gap: the
function only reaches this branch when _isBaseCellPentagon(baseCell)
is true, and pentagonDirectionFaces is generated (by
generatePentagonDirectionFaces.c) from exactly the same NUM_PENTAGONS
pentagon base cells that _isBaseCellPentagon recognizes. So the loop
is guaranteed to find a match and assign dirFaces before break,
whenever this branch is taken. This matches the maintainer's own
assessment in the issue threads ("it should be guaranteed... We ought
to be able to add a guard here that would remove the compiler
warning").

I was not able to reproduce the warning locally with GCC 16 or Apple
Clang 17 at -O1 through -O3 with -Wall -Wextra -Wmaybe-uninitialized -
their uninitialized-variable analysis has evidently improved since
these reports (GCC ~9-11 and Clang 11 in the original issues). The fix
is still correct and low-risk for the strict toolchains (R/CRAN
packaging, embedded builds) where this keeps getting independently
re-reported across 4+ years.

Fix: zero-initialize dirFaces at declaration, with a one-line comment
(kept short per review feedback - see below). This is a pure
defensive/cosmetic change with no effect on behavior, since the
existing NEVER() guard already prevents any use of an unassigned
dirFaces at runtime.

Also adds a test (vertexRotations_allPentagonBaseCells) exercising
vertexNu... (continued)

1929 of 1939 branches covered (99.48%)

Branch coverage included in aggregate %.

1 of 1 new or added line in 1 file covered. (100.0%)

3422 of 3425 relevant lines covered (99.91%)

36966673.77 hits per line

Jobs
ID Job ID Ran Files Coverage
1 42510626813.1 08 Nov 2026 06:37PM UTC 24
99.76
GitHub Action Run
Source Files on build 42510626813
  • Tree
  • List 24
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • f421dc84 on github
  • Prev Build on master (#42508625821)
  • Next Build on master (#42657638624)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc