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
157157 #endif//_MSC_VER
158158 #else//__GNUC__
159159 struct tm* t_now;
160−#endif//WIN32
160+#endif//WIN32
161161
162162 #if defined( WIN32 )
163163 struct _timeb tb;
@@ -172,7 +172,7 @@ void WelsLogDefault (void* pCtx, const int32_t kiLevel, const str_t* kpFmtStr, v · 8 unmodified lines
172172 return;
173173 }
174174 #endif//_MSC_VER >= 1500
175−#endif//_MSC_VER
175+#endif//_MSC_VER
176176 FTIME (&tb);
177177 #elif defined( __GNUC__ )
178178 struct timeval tv;
@@ -252,7 +252,7 @@ void WelsLogDefault (void* pCtx, const int32_t kiLevel, const str_t* kpFmtStr, v · 73 unmodified lines
252252 #endif//_MSC_VER >= 1500
253253 #endif//_MSC_VER
254254 #elif defined (__GNUC__)
255− iCurUsed = SNPRINTF (&pBuf[iBufUsed], iBufLeft, ".%3.3u]: ", tv.tv_usec / 1000); // confirmed_safe_unsafe_usage
255+ iCurUsed = SNPRINTF (&pBuf[iBufUsed], iBufLeft, ".%3.3u]: ", (unsigned int) (tv.tv_usec / 1000)); // confirmed_safe_unsafe_usage
256256 #endif//WIN32
257257 if (iCurUsed >= 0) {
258258 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