From fb4c62cc674c835988fcf199aecc2be3b4877f89 Mon Sep 17 00:00:00 2001 From: Thomas Peters Date: Fri, 4 Jan 2019 22:38:55 -0500 Subject: [PATCH] remove register keyword from jdhuff for C++17 (#1612) the register storage specifier was deprecated in C++11 and removed in C++17 --- dlib/external/libjpeg/jdhuff.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlib/external/libjpeg/jdhuff.cpp b/dlib/external/libjpeg/jdhuff.cpp index 26a2a36f2..cb0e93d3f 100644 --- a/dlib/external/libjpeg/jdhuff.cpp +++ b/dlib/external/libjpeg/jdhuff.cpp @@ -293,7 +293,7 @@ jpeg_make_d_derived_tbl (j_decompress_ptr cinfo, int isDC, int tblno, GLOBAL(int) jpeg_fill_bit_buffer (bitread_working_state * state, - bit_buf_type get_buffer, register int bits_left, + bit_buf_type get_buffer, int bits_left, int nbits) /* Load up the bit buffer to a depth of at least nbits */ { @@ -399,7 +399,7 @@ jpeg_fill_bit_buffer (bitread_working_state * state, GLOBAL(int) jpeg_huff_decode (bitread_working_state * state, - bit_buf_type get_buffer, register int bits_left, + bit_buf_type get_buffer, int bits_left, d_derived_tbl * htbl, int min_bits) { int l = min_bits;