Disable warning about volatile variables. They are oftne needed in embedded code
This commit is contained in:
parent
cb937262aa
commit
aeb2707d80
@ -5329,10 +5329,10 @@ sub process {
|
|||||||
|
|
||||||
# no volatiles please
|
# no volatiles please
|
||||||
my $asm_volatile = qr{\b(__asm__|asm)\s+(__volatile__|volatile)\b};
|
my $asm_volatile = qr{\b(__asm__|asm)\s+(__volatile__|volatile)\b};
|
||||||
if ($line =~ /\bvolatile\b/ && $line !~ /$asm_volatile/) {
|
#if ($line =~ /\bvolatile\b/ && $line !~ /$asm_volatile/) {
|
||||||
WARN("VOLATILE",
|
# WARN("VOLATILE",
|
||||||
"Use of volatile is usually wrong: see Documentation/process/volatile-considered-harmful.rst\n" . $herecurr);
|
# "Use of volatile is usually wrong: see Documentation/process/volatile-considered-harmful.rst\n" . $herecurr);
|
||||||
}
|
#}
|
||||||
|
|
||||||
# Check for user-visible strings broken across lines, which breaks the ability
|
# Check for user-visible strings broken across lines, which breaks the ability
|
||||||
# to grep for the string. Make exceptions when the previous string ends in a
|
# to grep for the string. Make exceptions when the previous string ends in a
|
||||||
|
Loading…
Reference in New Issue
Block a user