mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 06:23:18 +02:00
Use __clang_version__ macro
Newer llvm/clang versions (since r102686) have a __clang_version__ macro which can be used to print the exact clang version. Fix a case where chip_to_probe was referenced twice via extern, once at the function level and once in a global include file. Found by latest clang. Corresponding to flashrom svn r1087. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
This commit is contained in:
@ -26,7 +26,6 @@ int probe_w29ee011(struct flashchip *flash)
|
||||
{
|
||||
chipaddr bios = flash->virtual_memory;
|
||||
uint8_t id1, id2;
|
||||
extern char *chip_to_probe;
|
||||
|
||||
if (!chip_to_probe || strcmp(chip_to_probe, "W29EE011")) {
|
||||
msg_cdbg("Probing disabled for Winbond W29EE011 because "
|
||||
|
Reference in New Issue
Block a user