Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
2d3c5fb0
Commit
2d3c5fb0
authored
8 years ago
by
Nat Goodspeed
Browse files
Options
Downloads
Plain Diff
Automated merge with
ssh://bitbucket.org/lindenlab/viewer-vlc
parents
dc5a805e
67c40104
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/llcommon/llfasttimer.h
+10
-1
10 additions, 1 deletion
indra/llcommon/llfasttimer.h
indra/llrender/llimagegl.cpp
+0
-14
0 additions, 14 deletions
indra/llrender/llimagegl.cpp
with
10 additions
and
15 deletions
indra/llcommon/llfasttimer.h
+
10
−
1
View file @
2d3c5fb0
...
@@ -296,7 +296,16 @@ LL_FORCE_INLINE BlockTimer::BlockTimer(BlockTimerStatHandle& timer)
...
@@ -296,7 +296,16 @@ LL_FORCE_INLINE BlockTimer::BlockTimer(BlockTimerStatHandle& timer)
{
{
#if LL_FAST_TIMER_ON
#if LL_FAST_TIMER_ON
BlockTimerStackRecord
*
cur_timer_data
=
LLThreadLocalSingletonPointer
<
BlockTimerStackRecord
>::
getInstance
();
BlockTimerStackRecord
*
cur_timer_data
=
LLThreadLocalSingletonPointer
<
BlockTimerStackRecord
>::
getInstance
();
if
(
!
cur_timer_data
)
return
;
if
(
!
cur_timer_data
)
{
// How likely is it that
// LLThreadLocalSingletonPointer<T>::getInstance() will return NULL?
// Even without researching, what we can say is that if we exit
// without setting mStartTime at all, gcc 4.7 produces (fatal)
// warnings about a possibly-uninitialized data member.
mStartTime
=
0
;
return
;
}
TimeBlockAccumulator
&
accumulator
=
timer
.
getCurrentAccumulator
();
TimeBlockAccumulator
&
accumulator
=
timer
.
getCurrentAccumulator
();
accumulator
.
mActiveCount
++
;
accumulator
.
mActiveCount
++
;
// keep current parent as long as it is active when we are
// keep current parent as long as it is active when we are
...
...
This diff is collapsed.
Click to expand it.
indra/llrender/llimagegl.cpp
+
0
−
14
View file @
2d3c5fb0
...
@@ -240,15 +240,6 @@ S32 LLImageGL::dataFormatComponents(S32 dataformat)
...
@@ -240,15 +240,6 @@ S32 LLImageGL::dataFormatComponents(S32 dataformat)
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
#if LL_LINUX
// gcc 4.7.2 produces this error for the following function, which nat has
// been unable to diagnose as an actual problem:
// llimagegl.cpp:247:2: error: '<anonymous>.LLTrace::BlockTimer::mStartTime'
// may be used uninitialized in this function [-Werror=uninitialized]
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wuninitialized"
#endif
static
LLTrace
::
BlockTimerStatHandle
FTM_IMAGE_UPDATE_STATS
(
"Image Stats"
);
static
LLTrace
::
BlockTimerStatHandle
FTM_IMAGE_UPDATE_STATS
(
"Image Stats"
);
// static
// static
void
LLImageGL
::
updateStats
(
F32
current_time
)
void
LLImageGL
::
updateStats
(
F32
current_time
)
...
@@ -259,11 +250,6 @@ void LLImageGL::updateStats(F32 current_time)
...
@@ -259,11 +250,6 @@ void LLImageGL::updateStats(F32 current_time)
sCurBoundTextureMemory
=
S32Bytes
(
0
);
sCurBoundTextureMemory
=
S32Bytes
(
0
);
}
}
#if LL_LINUX
// In general we do want to know about uninitialized variables!
#pragma GCC diagnostic pop
#endif
//static
//static
S32
LLImageGL
::
updateBoundTexMem
(
const
S32Bytes
mem
,
const
S32
ncomponents
,
S32
category
)
S32
LLImageGL
::
updateBoundTexMem
(
const
S32Bytes
mem
,
const
S32
ncomponents
,
S32
category
)
{
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment