|
From: <no...@so...> - 2001-10-22 04:36:45
|
Bugs item #473549, was opened at 2001-10-21 19:34 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=103248&aid=473549&group_id=3248 Category: None Group: None >Status: Closed >Resolution: Invalid Priority: 7 Submitted By: Jeremiah (cobraa1) Assigned to: Nobody/Anonymous (nobody) Summary: Braces without a purpose Initial Comment: TimRiker has been having problems compiling with my radar changes, and while I've been going through his debugging dumps I've found an oddity that could be causing trouble: I've found a pair of curly braces {} that seem to seperate a block of code, but do not have an associated statement: { int n = 3; // assume triple buffering switch (sceneRenderer->getViewType()) { case SceneRenderer::Stacked: case SceneRenderer::Stereo: #ifndef USE_GL_STEREO // control panel drawn twice per frame n *= 2; #endif break; case SceneRenderer::ThreeChannel: default: // only one copy of control panel visible break; } controlPanel->setNumberOfFrameBuffers(n); } This is very weird indeed. No if, no loop, no anything. Since this problem has been in the code before my radar changes, I'll continue looking through the debug dump to make sure there aren't any more problems. In the file playing.cxx, in the "startPlaying" function. Line 4328 according to VC++ (although VC++ and GDB don't seem to agree on line numbering). ---------------------------------------------------------------------- >Comment By: Jeremiah (cobraa1) Date: 2001-10-21 21:36 Message: Logged In: YES user_id=25311 Thanks. The problem wasn't the braces anyway. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2001-10-21 19:40 Message: Logged In: NO This is perfectly normal, it just provides limited scoping for variable n. ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=103248&aid=473549&group_id=3248 |