Powered by Linux
smatch doesn't recognize binary constants — Semantic Matching Tool

smatch doesn't recognize binary constants

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I enjoyed Dan Carpenter's presentation on 'smatch' at Linux Plumbers
this afternoon.

FYI, smatch yields false errors when presented with "0b" binary
constants, e.g.:
  ss.c:1388:17: error: constant 0b1111111111111 is not a valid number
I think this is because smatch/expression.c get_number_value() uses
strtoull() to check integer constants, but strtoull() does not parse
"0b" as it does "0x".

 -Kamal

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux