-
-
Notifications
You must be signed in to change notification settings - Fork 14k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #242094 from reckenrode/djvulibre-clang16
djvulibre: fix build with clang 16
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
pkgs/applications/misc/djvulibre/c++17-register-class.patch
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
diff -ur a/libdjvu/GBitmap.h b/libdjvu/GBitmap.h | ||
--- a/libdjvu/GBitmap.h 2020-11-20 09:57:32.000000000 -0700 | ||
+++ b/libdjvu/GBitmap.h 2023-07-07 07:07:45.519912414 -0600 | ||
@@ -620,7 +620,7 @@ | ||
inline int | ||
GBitmap::read_run(unsigned char *&data) | ||
{ | ||
- register int z=*data++; | ||
+ int z=*data++; | ||
return (z>=RUNOVERFLOWVALUE)? | ||
((z&~RUNOVERFLOWVALUE)<<8)|(*data++):z; | ||
} | ||
@@ -628,7 +628,7 @@ | ||
inline int | ||
GBitmap::read_run(const unsigned char *&data) | ||
{ | ||
- register int z=*data++; | ||
+ int z=*data++; | ||
return (z>=RUNOVERFLOWVALUE)? | ||
((z&~RUNOVERFLOWVALUE)<<8)|(*data++):z; | ||
} |
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