Skip to content

Conversation

@pemensik
Copy link

@pemensik pemensik commented May 6, 2024

Space after printf % character does make sense only when the value can be negative. If it is always positive, the space can be before the number in all cases. GCC warns about this, this change fixes it.

This fixes following warning:
mainview.c:596:38: warning: ' ' flag used with ‘%u’ gnu_printf format [-Wformat=]
596 | wprintw(miscview, "\nCycles :% 10u\n", clocks);

Space after printf % character does make sense only when the value can
be negative. If it is always positive, the space can be before the
number in all cases. GCC warns about this, this change fixes it.

This fixes following warning:
mainview.c:596:38: warning: ' ' flag used with ‘%u’ gnu_printf format [-Wformat=]
  596 |     wprintw(miscview, "\nCycles :% 10u\n", clocks);
@pemensik
Copy link
Author

pemensik commented May 6, 2024

FYI: I have submitted Fedora package review with this project. It is tiny with almost no dependencies. Unlike Atanua it has no required data files without obvious license. I have not used 8051 for anything since school, but this little thing might be very useful to anyone actually trying to learn about processors. Thank you both for creating it and making it open source!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant