Suppress paranoid warnings for external/3rd-party libraries
[Feature #15665]
This commit is contained in:
parent
dc95b57a68
commit
fe3ff5afb0
@ -180,6 +180,7 @@ int
|
|||||||
|
|
||||||
% }
|
% }
|
||||||
default:
|
default:
|
||||||
|
if (!str || !valp) {/* wrong argument */}
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2198,6 +2198,7 @@ rb_array_ptr_use_start(VALUE a, int allow_transient)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
(void)allow_transient;
|
||||||
|
|
||||||
return rb_ary_ptr_use_start(a);
|
return rb_ary_ptr_use_start(a);
|
||||||
}
|
}
|
||||||
@ -2208,6 +2209,7 @@ rb_array_ptr_use_end(VALUE a, int allow_transient)
|
|||||||
{
|
{
|
||||||
void rb_ary_ptr_use_end(VALUE a);
|
void rb_ary_ptr_use_end(VALUE a);
|
||||||
rb_ary_ptr_use_end(a);
|
rb_ary_ptr_use_end(a);
|
||||||
|
(void)allow_transient;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(EXTLIB) && defined(USE_DLN_A_OUT)
|
#if defined(EXTLIB) && defined(USE_DLN_A_OUT)
|
||||||
|
@ -117,10 +117,10 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !__has_feature(memory_sanitizer)
|
#if !__has_feature(memory_sanitizer)
|
||||||
# define __msan_allocated_memory(x, y)
|
# define __msan_allocated_memory(x, y) ((void)(x), (void)(y))
|
||||||
# define __msan_poison(x, y)
|
# define __msan_poison(x, y) ((void)(x), (void)(y))
|
||||||
# define __msan_unpoison(x, y)
|
# define __msan_unpoison(x, y) ((void)(x), (void)(y))
|
||||||
# define __msan_unpoison_string(x)
|
# define __msan_unpoison_string(x) ((void)(x))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
@ -2735,7 +2735,7 @@ MESSAGE
|
|||||||
##
|
##
|
||||||
# A C main function which does no work
|
# A C main function which does no work
|
||||||
|
|
||||||
MAIN_DOES_NOTHING = config_string('MAIN_DOES_NOTHING') || "int main(int argc, char **argv)\n{\n return 0;\n}"
|
MAIN_DOES_NOTHING = config_string('MAIN_DOES_NOTHING') || "int main(int argc, char **argv)\n{\n return !!argv[argc];\n}"
|
||||||
UNIVERSAL_INTS = config_string('UNIVERSAL_INTS') {|s| Shellwords.shellwords(s)} ||
|
UNIVERSAL_INTS = config_string('UNIVERSAL_INTS') {|s| Shellwords.shellwords(s)} ||
|
||||||
%w[int short long long\ long]
|
%w[int short long long\ long]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user