forked from DediProgSW/SF100Linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move globals from headers and make static
Two global variables were declared as non-extern in the `usb_driver.h` header file which caused the linker to complain about multiple definiton errors when GCC 10+ was used. (See https://gcc.gnu.org/gcc-10/porting_to.html for details.) Instead of marking these variables extern, which was possible and worked, they were moved to the source files because they were only used in `usb_driver.c` where `usb_driver.h` was included. Three other variables in dpcmd.h causing the linker errors were removed because they were not used anywhere at all.
- Loading branch information
Showing
4 changed files
with
4 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters