mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
build: Fix build warnings on Windows (#32500)
Disable some code for Windows, which is causing build warnings. When it cannot be easily disabled (mainly for the incomplete BHM and sandbox feature), allow dead code.
This commit is contained in:
parent
6b6872831c
commit
7982f0dc27
4 changed files with 10 additions and 0 deletions
|
@ -831,6 +831,7 @@ impl FontFamilyDescriptor {
|
|||
/// ];
|
||||
/// let mapped_weight = apply_font_config_to_style_mapping(&mapping, weight as f64);
|
||||
/// ```
|
||||
#[cfg(any(target_os = "linux", target_os = "macos"))]
|
||||
pub(crate) fn map_platform_values_to_style_values(mapping: &[(f64, f64)], value: f64) -> f64 {
|
||||
if value < mapping[0].0 {
|
||||
return mapping[0].1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue