You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ko...@apache.org on 2025/06/28 20:57:21 UTC

(arrow-adbc) branch main updated: build(c): fix warnings in vendored toml.hpp (#3045)

This is an automated email from the ASF dual-hosted git repository.

kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git


The following commit(s) were added to refs/heads/main by this push:
     new 8da67a411 build(c): fix warnings in vendored toml.hpp (#3045)
8da67a411 is described below

commit 8da67a41192354ff83fc4b4d9cf02d16f80342ff
Author: David Li <li...@gmail.com>
AuthorDate: Sun Jun 29 05:57:16 2025 +0900

    build(c): fix warnings in vendored toml.hpp (#3045)
    
    Fixes #3027.
---
 c/vendor/toml++/toml.hpp        | 6 +++---
 c/vendor/vendor_tomlplusplus.sh | 2 ++
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/c/vendor/toml++/toml.hpp b/c/vendor/toml++/toml.hpp
index 0599bf5ed..cc188fb72 100644
--- a/c/vendor/toml++/toml.hpp
+++ b/c/vendor/toml++/toml.hpp
@@ -3570,7 +3570,7 @@ TOML_NAMESPACE_START
 	{
 		TOML_NODISCARD
 		TOML_ALWAYS_INLINE
-		path operator"" _tpath(const char* str, size_t len)
+		path operator""_tpath(const char* str, size_t len)
 		{
 			return path(std::string_view{ str, len });
 		}
@@ -9598,7 +9598,7 @@ TOML_NAMESPACE_START
 
 		TOML_NODISCARD
 		TOML_ALWAYS_INLINE
-		parse_result operator"" _toml(const char* str, size_t len)
+		parse_result operator""_toml(const char* str, size_t len)
 		{
 			return parse(std::string_view{ str, len });
 		}
@@ -9607,7 +9607,7 @@ TOML_NAMESPACE_START
 
 		TOML_NODISCARD
 		TOML_ALWAYS_INLINE
-		parse_result operator"" _toml(const char8_t* str, size_t len)
+		parse_result operator""_toml(const char8_t* str, size_t len)
 		{
 			return parse(std::u8string_view{ str, len });
 		}
diff --git a/c/vendor/vendor_tomlplusplus.sh b/c/vendor/vendor_tomlplusplus.sh
index de53902f7..1fd0e98f3 100755
--- a/c/vendor/vendor_tomlplusplus.sh
+++ b/c/vendor/vendor_tomlplusplus.sh
@@ -24,3 +24,5 @@ rm tomlplusplus.zip
 mkdir toml++
 mv tomlplusplus-*/toml.hpp toml++/toml.hpp
 rm -rf tomlplusplus-*
+
+echo "Please manually update toml.hpp to suppress warnings about operator\"\"."