Skip to content

Commit

Permalink
Disable enum warning for objc (#1859)
Browse files Browse the repository at this point in the history
  • Loading branch information
liamappelbe authored Jan 5, 2025
1 parent 598c969 commit ab7872c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/ffigen/lib/src/config_provider/yaml_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ class YamlConfig implements Config {
HeterogeneousMapEntry(
key: strings.silenceEnumWarning,
valueConfigSpec: BoolConfigSpec(),
defaultValue: (node) => false,
defaultValue: (node) => language == Language.objc,
resultOrDefault: (node) => _silenceEnumWarning = node.value as bool,
),
HeterogeneousMapEntry(
Expand Down

0 comments on commit ab7872c

Please sign in to comment.