Skip to content

Commit

Permalink
in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
Yay295 committed Jun 25, 2024
1 parent 7a5e261 commit 4e6d8ff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ debug:
# for our stuff, kills optimization, and redirects to dev null so we
# see any build failures.
make clean > /dev/null
CFLAGS='-g -O0' python3 -m pip -v install . > /dev/null
CFLAGS='-g -O2 -std=c99 -Wall -Wlogical-op' python3 -m pip -v install . > /dev/null

.PHONY: release-test
release-test:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,7 @@ def debug_build():
ext_modules = [
Extension("PIL._imaging", files, libraries=["pil_imaging_mode"]),
Extension("PIL._imagingft", ["src/_imagingft.c"], libraries=["pil_imaging_mode"]),
Extension("PIL._imagingcms", ["src/_imagingcms.c"]),
Extension("PIL._imagingcms", ["src/_imagingcms.c"], libraries=["pil_imaging_mode"]),
Extension("PIL._webp", ["src/_webp.c"], libraries=["pil_imaging_mode"]),
Extension("PIL._imagingtk", ["src/_imagingtk.c", "src/Tk/tkImaging.c"]),
Extension("PIL._imagingmath", ["src/_imagingmath.c"]),
Expand Down
3 changes: 2 additions & 1 deletion src/_imagingcms.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ cms_transform_dealloc(CmsTransformObject *self) {
/* internal functions */

static cmsUInt32Number
findLCMStype(char *PILmode) {
findLCMStype(const char *PILmode) {
const ModeID mode = findModeID(PILmode);

Check warning on line 216 in src/_imagingcms.c

View workflow job for this annotation

GitHub Actions / ubuntu-latest Python 3.12

unused variable ‘mode’ [-Wunused-variable]
if (strcmp(PILmode, "RGB") == 0 || strcmp(PILmode, "RGBA") == 0 ||
strcmp(PILmode, "RGBX") == 0) {
return TYPE_RGBA_8;
Expand Down

0 comments on commit 4e6d8ff

Please sign in to comment.