forked from esno/yoga-bios-unlock
-
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.
qa: adapt gcc warnings and fix type conversions
fixes a bad type conversion between signed and unsigned int which hid a wrong if clause expression in fread'ing files from sysfs. Even if `fread()` would have failed the `strcmp()` would fail and prevent bad/unexpected things. Worst that may happen is a false device detection that does not recognize your yoga notebook.
- Loading branch information
Showing
2 changed files
with
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
yoga-unlock: | ||
${CC} -o ./yoga-bios-unlock ./src/yoga-bios-unlock.c -O2 -Wall | ||
${CC} -o ./yoga-bios-unlock ./src/yoga-bios-unlock.c -O2 -Wall -Wextra -Wfloat-equal -Wshadow -Wstrict-prototypes -Wstrict-overflow=5 -Wcast-qual -Wconversion -Wunreachable-code -fanalyzer | ||
|
||
clean: | ||
rm ./yoga-bios-unlock |
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