From e81b5a11b8bdde57a491ed954c279aa58246f588 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 12 Apr 2019 18:22:00 +0200 Subject: [PATCH] sdram_init: set __attribute__((unused)) on command_px to avoid compilation warning --- litedram/sdram_init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litedram/sdram_init.py b/litedram/sdram_init.py index 86ceffc..2dd101e 100644 --- a/litedram/sdram_init.py +++ b/litedram/sdram_init.py @@ -354,7 +354,7 @@ def get_sdram_phy_c_header(phy_settings, timing_settings): # commands_px functions for n in range(nphases): r += """ -static void command_p{n}(int cmd) +__attribute__((unused)) static void command_p{n}(int cmd) {{ sdram_dfii_pi{n}_command_write(cmd); sdram_dfii_pi{n}_command_issue_write(1);