summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Wennborg <hans@chromium.org>2017-11-02 05:03:27 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-02 05:03:27 +0000
commit87d06d37e0d04b2559598d1adbcb008074a20bd4 (patch)
tree5641a55ee4c100960da56cab68802a91958147c3
parent68bc6ad5a70fdb35ae5c088bd3ca977e15ea9573 (diff)
downloadpdfium-87d06d37e0d04b2559598d1adbcb008074a20bd4.tar.xz
Remove use of deprecated 'register' keyword
Bug: chromium:780692 Change-Id: I16e7d071b1375e8a31e785141a8af5b4c103f81b Reviewed-on: https://pdfium-review.googlesource.com/17390 Commit-Queue: Lei Zhang <thestig@chromium.org> Commit-Queue: Hans Wennborg <hans@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
-rw-r--r--third_party/lcms/0029-drop-register-keyword.patch24
-rw-r--r--third_party/lcms/README.pdfium1
-rw-r--r--third_party/lcms/include/lcms2.h12
3 files changed, 31 insertions, 6 deletions
diff --git a/third_party/lcms/0029-drop-register-keyword.patch b/third_party/lcms/0029-drop-register-keyword.patch
new file mode 100644
index 0000000000..7680f2c445
--- /dev/null
+++ b/third_party/lcms/0029-drop-register-keyword.patch
@@ -0,0 +1,24 @@
+diff --git a/third_party/lcms/include/lcms2.h b/third_party/lcms/include/lcms2.h
+index c84a4fd93..2bf6f2472 100644
+--- a/third_party/lcms/include/lcms2.h
++++ b/third_party/lcms/include/lcms2.h
+@@ -1239,13 +1239,13 @@ CMSAPI cmsStageSignature CMSEXPORT cmsStageType(const cmsStage* mpe);
+ CMSAPI void* CMSEXPORT cmsStageData(const cmsStage* mpe);
+
+ // Sampling
+-typedef cmsInt32Number (* cmsSAMPLER16) (register const cmsUInt16Number In[],
+- register cmsUInt16Number Out[],
+- register void * Cargo);
++typedef cmsInt32Number (*cmsSAMPLER16)(const cmsUInt16Number In[],
++ cmsUInt16Number Out[],
++ void* Cargo);
+
+-typedef cmsInt32Number (* cmsSAMPLERFLOAT)(register const cmsFloat32Number In[],
+- register cmsFloat32Number Out[],
+- register void * Cargo);
++typedef cmsInt32Number (*cmsSAMPLERFLOAT)(const cmsFloat32Number In[],
++ cmsFloat32Number Out[],
++ void* Cargo);
+
+ // Use this flag to prevent changes being written to destination
+ #define SAMPLER_INSPECT 0x01000000
diff --git a/third_party/lcms/README.pdfium b/third_party/lcms/README.pdfium
index f8fe7e749e..b04da7df21 100644
--- a/third_party/lcms/README.pdfium
+++ b/third_party/lcms/README.pdfium
@@ -40,3 +40,4 @@ Local Modifications:
0026-more-unsupported-characters.patch: remove other unsupported characters.
0027-changes-from-beginning-of-time.patch: commented changes from initial commit.
0028-do-not-quickfloor.patch: flooring errors may cause heap-buffer-overflow.
+0029-drop-register-keyword.patch: Remove deprecated 'register' keyword.
diff --git a/third_party/lcms/include/lcms2.h b/third_party/lcms/include/lcms2.h
index c84a4fd937..2bf6f24725 100644
--- a/third_party/lcms/include/lcms2.h
+++ b/third_party/lcms/include/lcms2.h
@@ -1239,13 +1239,13 @@ CMSAPI cmsStageSignature CMSEXPORT cmsStageType(const cmsStage* mpe);
CMSAPI void* CMSEXPORT cmsStageData(const cmsStage* mpe);
// Sampling
-typedef cmsInt32Number (* cmsSAMPLER16) (register const cmsUInt16Number In[],
- register cmsUInt16Number Out[],
- register void * Cargo);
+typedef cmsInt32Number (*cmsSAMPLER16)(const cmsUInt16Number In[],
+ cmsUInt16Number Out[],
+ void* Cargo);
-typedef cmsInt32Number (* cmsSAMPLERFLOAT)(register const cmsFloat32Number In[],
- register cmsFloat32Number Out[],
- register void * Cargo);
+typedef cmsInt32Number (*cmsSAMPLERFLOAT)(const cmsFloat32Number In[],
+ cmsFloat32Number Out[],
+ void* Cargo);
// Use this flag to prevent changes being written to destination
#define SAMPLER_INSPECT 0x01000000