Project

General

Profile

« Previous | Next » 

Revision 69b5241c

Added by shyouhei (Shyouhei Urabe) almost 5 years ago

ruby_debug_log: suppress warning

Old gcc (< 5 maybe?) warns that this variable is not initialized:

debug.c: In function 'ruby_debug_log':
debug.c:441:13: warning: 'r' may be used uninitialized in this function [-Wmaybe-uninitialized]
         if (r && len < MAX_DEBUG_LOG_MESSAGE_LEN) {
             ^

I don't know if that is true, but adding "= 0" here must harm no one.