Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mainview.c warning on gcc compilation #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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