Skip to content

Commit

Permalink
software/liblitedram: Fix swap_bit warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital committed Aug 30, 2023
1 parent c2714df commit 434e222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion litex/soc/software/liblitedram/sdram.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ void sdram_software_control_off(void) {
/* Mode Register */
/*-----------------------------------------------------------------------*/

int swap_bit(int num, int a, int b) {
__attribute__((unused)) static int swap_bit(int num, int a, int b) {
if (((num >> a) & 1) != ((num >> b) & 1)) {
num ^= (1 << a);
num ^= (1 << b);
Expand Down

0 comments on commit 434e222

Please sign in to comment.