[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pecl-cvs
Subject:    [PECL-CVS] [pecl-database-mysql_xdevapi] release/8.0.30: cdkbase: Disable c++17 deprecation warning.
From:       Rafal Somla <noreply () php ! net>
Date:       2022-07-26 10:54:16
Message-ID: w7OJLSEDogK2nVppyhd6gWse4bUihSkFdqifmx0LI2A () main ! php ! net
[Download RAW message or body]

Author: Rafal Somla (rsomla1)
Pusher: hramilison
Date: 2022-06-22T14:50:55+02:00

Commit: https://github.com/php/pecl-database-mysql_xdevapi/commit/a68a7d78feefa005a258945ce628aba46f1efd2b
 Raw diff: https://github.com/php/pecl-database-mysql_xdevapi/commit/a68a7d78feefa005a258945ce628aba46f1efd2b.diff


cdkbase: Disable c++17 deprecation warning.

Note: the code should be fixed to not use deprecated template.

Changed paths:
  M  xmysqlnd/cdkbase/include/mysql/cdk/foundation/string.h


Diff:

diff --git a/xmysqlnd/cdkbase/include/mysql/cdk/foundation/string.h \
b/xmysqlnd/cdkbase/include/mysql/cdk/foundation/string.h index a8c91d5d..985ad012 \
                100644
--- a/xmysqlnd/cdkbase/include/mysql/cdk/foundation/string.h
+++ b/xmysqlnd/cdkbase/include/mysql/cdk/foundation/string.h
@@ -375,6 +375,14 @@ size_t str_encode(
   at a time (single character can be encoded using one or more code units).
 */
 
+// FIXME: std::iterator<> is deprecated in c++17
+
+#ifndef _MSC_VER
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#endif
+
+
 template <class ENC>
 class char_iterator_base
   : public std::iterator<
@@ -559,6 +567,11 @@ class char_iterator_base
 };  // char_iterator_base
 
 
+#ifndef _MSC_VER
+#pragma GCC diagnostic pop
+#endif
+
+
 /*
   String class using UTF16 for internal representation.
 */

-- 
PECL CVS Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic