adonthell-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Adonthell-commits] [ksterker/adonthell] 000f2a: world: removed the exce


From: GitHub
Subject: [Adonthell-commits] [ksterker/adonthell] 000f2a: world: removed the exception from renderer.cc
Date: Sat, 23 Jun 2012 09:02:22 -0700

  Branch: refs/heads/master
  Home:   https://github.com/ksterker/adonthell
  Commit: 000f2aef4b31823168cbbf2dbdd4112ed4ef2e3d
      
https://github.com/ksterker/adonthell/commit/000f2aef4b31823168cbbf2dbdd4112ed4ef2e3d
  Author: Chris Frey <address@hidden>
  Date:   2012-06-22 (Fri, 22 Jun 2012)

  Changed paths:
    M src/world/renderer.cc

  Log Message:
  -----------
  world: removed the exception from renderer.cc

After analyzing the code, all possible cases are handled in the switch
statement, but the compiler is not always smart enough to figure that
out (and it took me a while too).  :-)  So, for the "should never happen"
case, add a default: case under case 0, which displays debug output,
which is a suitable response.

This removes the exception I added before to fix compile issues, and
adonthell should now compile again when exception are turned off.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]