mirror of
https://github.com/anrieff/libcpuid
synced 2025-10-03 11:01:30 +00:00
Do not warn about deprecated declarations in cpu_ident_internal()
This commit is contained in:
parent
549206f59e
commit
7456289072
2 changed files with 6 additions and 1 deletions
|
@ -1381,6 +1381,11 @@ int cpu_ident_internal(struct cpu_raw_data_t* raw, struct cpu_id_t* data, struct
|
|||
}
|
||||
|
||||
#ifndef LIBCPUID_DISABLE_DEPRECATED
|
||||
# if defined(__GNUC__) || defined(GNUC)
|
||||
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
# elif defined(__clang__)
|
||||
# pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
||||
# endif
|
||||
/* Backward compatibility */
|
||||
/* - Deprecated since v0.5.0 */
|
||||
data->l1_assoc = data->l1_data_assoc;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue