This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository efl.
View the commit online.
commit 305750875ec50b18788cc27cb6d554799ecbfa5e
Author: Carsten Haitzler <ras...@rasterman.com>
AuthorDate: Thu May 30 17:07:05 2024 +0100
eina - value - disable warnings for ptr math
we over-alloc thus this warning is not right. silence the warning
---
src/lib/eina/eina_inline_value.x | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/lib/eina/eina_inline_value.x b/src/lib/eina/eina_inline_value.x
index 649cab1900..00beecbc47 100644
--- a/src/lib/eina/eina_inline_value.x
+++ b/src/lib/eina/eina_inline_value.x
@@ -486,14 +486,20 @@ eina_value_pset(Eina_Value *value, const void *ptr)
{
if (type == EINA_VALUE_TYPE_STRINGSHARE)
{
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Warray-bounds"
const char *str = *((const char * const *) ptr);
+#pragma GCC diagnostic pop
return eina_stringshare_replace((const char **)&value->value.ptr,
str);
}
else if (type == EINA_VALUE_TYPE_STRING)
{
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Warray-bounds"
const char *str = *((const char * const *) ptr);
+#pragma GCC diagnostic pop
if (value->value.ptr == str) return EINA_TRUE;
if (!str)
{
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.