Idwer Vollering has uploaded this change for review.

View Change

ati: re-enable generating wiki code

This unbreaks building with CONFIG_PRINT_WIKI=yes.
Tested with gcc 7 and clang 6 on ubuntu, with
https://review.coreboot.org/c/flashrom/+/36946 applied on top.

Change-Id: Ifde0285fc1e9df0f6d159a5972c5d3a43c2f6a1a
Signed-off-by: Idwer Vollering <vidwer@gmail.com>
---
M print_wiki.c
1 file changed, 3 insertions(+), 3 deletions(-)

git pull ssh://review.coreboot.org:29418/flashrom refs/changes/58/41258/1
diff --git a/print_wiki.c b/print_wiki.c
index 812e01d..ca5a71e 100644
--- a/print_wiki.c
+++ b/print_wiki.c
@@ -360,7 +360,7 @@
return count;
}

-static char *vendor_colour_get(void)
+static const char *vendor_colour_get(void)
{
static bool vendor_colour = false;

@@ -378,7 +378,7 @@
int i = 0;
const struct dev_entry *devs = prog.devs.dev;
const unsigned int count = count_supported_devs_wiki(devs);
- char *colour = vendor_colour_get();
+ const char *colour = vendor_colour_get();

for (i = 0; devs[i].vendor_id != 0; i++) {
printf("|- bgcolor=\"#%s\"\n", colour);
@@ -407,7 +407,7 @@
static void print_supported_pci_matches_wiki_helper(const struct programmer_entry prog)
{
const struct flashrom_pci_match *matches = prog.devs.pci_match;
- char *colour = vendor_colour_get();
+ const char *colour = vendor_colour_get();
int i, count = count_supported_pci_matches_wiki(matches);
int vendor_length = 0;
uint16_t vendor_id = 0;

To view, visit change 41258. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Ifde0285fc1e9df0f6d159a5972c5d3a43c2f6a1a
Gerrit-Change-Number: 41258
Gerrit-PatchSet: 1
Gerrit-Owner: Idwer Vollering <vidwer@gmail.com>
Gerrit-MessageType: newchange