Fix compilation warning with gcc10 (#1393)

Summary:
gcc warnings are more strict starting from gcc10. Not having the const
qualifier triggers an error.

Pull Request resolved: https://github.com/facebook/infer/pull/1393

Reviewed By: skcho

Differential Revision: D26780417

Pulled By: jvillard

fbshipit-source-id: 4507c55eb
master
Boris Yakobowski 4 years ago committed by Facebook GitHub Bot
parent f15d6d9675
commit 52447b01af

@ -23,7 +23,7 @@ uint64_t fnv64_hash_impl(const char* s) {
}
CAMLprim value fnv64_hash(value c) {
char* c_string = String_val(c);
const char* c_string = String_val(c);
uint64_t hashed = fnv64_hash_impl(c_string);
char str[21];
snprintf(str, 21, "%" PRIu64, hashed);

Loading…
Cancel
Save