History

Fixed warnings found by clang. Removed some trailing whitespace.

Ethan Hugg committed 12 years ago

Commit bcf102d1 parent 616dc872 files · +10 −10Browse files

Showing the changes to codec/encoder/core/src/utils.cpp (1 of 2 files). Show all

Unified · Split

codec/encoder/core/src/utils.cpp+3−3
@@ -157,7 +157,7 @@ void WelsLogDefault (void* pCtx, const int32_t kiLevel, const str_t* kpFmtStr, v · 156 unmodified lines
157#endif//_MSC_VER157#endif//_MSC_VER
158#else//__GNUC__158#else//__GNUC__
159 struct tm* t_now;159 struct tm* t_now;
160#endif//WIN32 160#endif//WIN32
161 161
162#if defined( WIN32 )162#if defined( WIN32 )
163 struct _timeb tb;163 struct _timeb tb;
@@ -172,7 +172,7 @@ void WelsLogDefault (void* pCtx, const int32_t kiLevel, const str_t* kpFmtStr, v · 8 unmodified lines
172 return;172 return;
173 }173 }
174#endif//_MSC_VER >= 1500174#endif//_MSC_VER >= 1500
175#endif//_MSC_VER 175#endif//_MSC_VER
176 FTIME (&tb);176 FTIME (&tb);
177#elif defined( __GNUC__ )177#elif defined( __GNUC__ )
178 struct timeval tv;178 struct timeval tv;
@@ -252,7 +252,7 @@ void WelsLogDefault (void* pCtx, const int32_t kiLevel, const str_t* kpFmtStr, v · 73 unmodified lines
252#endif//_MSC_VER >= 1500252#endif//_MSC_VER >= 1500
253#endif//_MSC_VER253#endif//_MSC_VER
254#elif defined (__GNUC__)254#elif defined (__GNUC__)
255 iCurUsed = SNPRINTF (&pBuf[iBufUsed], iBufLeft, ".%3.3u]: ", tv.tv_usec / 1000); // confirmed_safe_unsafe_usage255 iCurUsed = SNPRINTF (&pBuf[iBufUsed], iBufLeft, ".%3.3u]: ", (unsigned int) (tv.tv_usec / 1000)); // confirmed_safe_unsafe_usage
256#endif//WIN32256#endif//WIN32
257 if (iCurUsed >= 0) {257 if (iCurUsed >= 0) {
258 iBufUsed += iCurUsed;258 iBufUsed += iCurUsed;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t