Skip to content
Browse files

Fix a compiler warning from GCC 4.6.4.

The variable name in this warning is "pre-phi-tmp", as in, some
compiler internals spilling into userspace. But I think it's probably
referring to `bestV`, and indeed, this initialization silences the

    geometry2.cpp: In function ‘void hr::virtualRebaseSimple(hr::heptagon*&, hr::transmatrix&)’:
    geometry2.cpp:366:7: error: ‘prephitmp.91209’ may be used uninitialized in this function [-Werror=uninitialized]
  • Loading branch information...
Quuxplusone committed Feb 10, 2019
1 parent 5e8d03e commit 5efd1f56624920f462149bf10f584a0299a634f5
Showing with 1 addition and 2 deletions.
  1. +1 −2 geometry2.cpp
@@ -356,7 +356,7 @@ void virtualRebaseSimple(heptagon*& base, transmatrix& at) {

heptagon *newbase = NULL;

transmatrix bestV;
transmatrix bestV {};

for(int d=0; d<S7; d++) {
heptspin hs(h, d, false);
@@ -592,4 +592,3 @@ hyperpoint get_warp_corner(cell *c, int cid) {


0 comments on commit 5efd1f5

Please sign in to comment.
You can’t perform that action at this time.