git: f97941e2c029 - main - print/hplip: fix fax/filters/cdmfax/jetlib.cpp with llvm16

From: Tijl Coosemans <tijl_at_FreeBSD.org>
Date: Tue, 15 Aug 2023 08:10:49 UTC
The branch main has been updated by tijl:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f97941e2c029cda0f1eec659d8d5cf5c2f3a252c

commit f97941e2c029cda0f1eec659d8d5cf5c2f3a252c
Author:     Oleg Sidorkin <osidorkin@gmail.com>
AuthorDate: 2023-08-01 06:11:53 +0000
Commit:     Tijl Coosemans <tijl@FreeBSD.org>
CommitDate: 2023-08-15 08:09:22 +0000

    print/hplip: fix fax/filters/cdmfax/jetlib.cpp with llvm16
---
 .../files/patch-fax_filters_cdmfax_jetlib.cpp      | 35 ++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/print/hplip/files/patch-fax_filters_cdmfax_jetlib.cpp b/print/hplip/files/patch-fax_filters_cdmfax_jetlib.cpp
new file mode 100644
index 000000000000..f484f41a41c3
--- /dev/null
+++ b/print/hplip/files/patch-fax_filters_cdmfax_jetlib.cpp
@@ -0,0 +1,35 @@
+--- fax/filters/cdmfax/jetlib.cpp.orig	2023-06-02 08:02:35 UTC
++++ fax/filters/cdmfax/jetlib.cpp
+@@ -49,8 +49,8 @@ Copyright (c) 1995 Hewlett-Packard Company.  All right
+ */
+ 
+ 
+-static char *LibRev = "PCL XL Stream Creator Library.  Revision p$Revision: 4.0 $";
+-static char *LibCopyright = "(c) Copyright Hewlett-Packard Company, 1995, 1996, 1997.  All rights are reserved.";
++static const char *LibRev = "PCL XL Stream Creator Library.  Revision p$Revision: 4.0 $";
++static const char *LibCopyright = "(c) Copyright Hewlett-Packard Company, 1995, 1996, 1997.  All rights are reserved.";
+ 
+ /*
+  *  file: jetlib.c
+@@ -7568,8 +7568,8 @@ HP_StdFuncPrefix HP_M2TIFF_CalcCompression(
+     HP_pCharHuge lpfirst;
+     HP_pCharHuge lpchar;
+     HP_BOOL in_run, FourByteWordPad;
+-    register HP_UByte count;
+-    register HP_SInt16 state;
++    HP_UByte count;
++    HP_SInt16 state;
+     HP_UByte padCount;
+     HP_pUByte  lpEnd;
+ 
+@@ -7704,8 +7704,8 @@ HP_StdFuncPrefix HP_M2TIFF_Compress(
+     HP_pCharHuge lpfirst;
+     HP_pCharHuge lpchar;
+     HP_BOOL in_run,FourByteWordPad;
+-    register HP_UByte count;
+-    register HP_SInt16 state;
++    HP_UByte count;
++    HP_SInt16 state;
+     HP_pCharHuge   lpEnd;
+     HP_UByte padCount;
+