This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

elfutils-0.157 bug report


Hello there,

I just ran the static analyser "cppcheck" over the source
code of elfutils-0.157.

It said many things, including

[ar.c:205]: (warning) Logical conjunction always evaluates to false: operation == 7 && operation == 1.

Source code is

      if (operation == oper_extract && operation == oper_delete)

Suggest swap && for ||

Regards

David Binderman 		 	   		  

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]