Ticket #123 (new defect)

Opened 1 month ago

Some compiler warnings

Reported by: raggi Assigned to: raggi
Priority: minor Milestone:
Keywords: Cc:

Description

g++ -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -DBUILD_FOR_RUBY -DHAVE_RB_TRAP_IMMEDIATE -DHAVE_RBTRAP -DOS_UNIX -DHAVE_SYS_EPOLL_H -DHAVE_EPOLL -DWITH_SSL    -fPIC -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -g -fno-strict-aliasing  -fPIC      -c cmain.cpp
cmain.cpp:543:2: warning: "/*" within comment
cmain.cpp: In function 'int evma_send_file_data_to_connection(const char*, const char*)':
cmain.cpp:569: warning: comparison between signed and unsigned integer expressions
--
ed.cpp: In constructor 'DatagramDescriptor::DatagramDescriptor(int, EventMachine_t*)':
ed.cpp:1091: warning: unused variable 'sob'
--
em.h: In constructor 'EventMachine_t::EventMachine_t(void (*)(const char*, int, const char*, int))':
em.h:161: warning: 'EventMachine_t::kqfd' will be initialized after
em.h:158: warning:   'int EventMachine_t::epfd'
em.cpp:82: warning:   when initialized here
em.cpp: In static member function 'static int EventMachine_t::SetRlimitNofile(int)':
em.cpp:262: warning: comparison between signed and unsigned integer expressions
em.cpp: In member function 'void EventMachine_t::SignalLoopBreaker()':
em.cpp:286: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result
em.cpp: In member function 'bool EventMachine_t::_RunEpollOnce()':
em.cpp:525: warning: comparison between signed and unsigned integer expressions
em.cpp: In member function 'void EventMachine_t::_ReadLoopBreaker()':
em.cpp:859: warning: ignoring return value of 'ssize_t read(int, void*, size_t)', declared with attribute warn_unused_result
em.cpp: In member function 'const char* EventMachine_t::InstallOneshotTimer(int)':
em.cpp:913: warning: comparison between signed and unsigned integer expressions
--
kb.cpp: In member function 'virtual void KeyboardDescriptor::Read()':
kb.cpp:79: warning: ignoring return value of 'ssize_t read(int, void*, size_t)', declared with attribute warn_unused_result