From 4f49843c568ccd8f3b84face34f8fa9a1e400b57 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Thu, 19 Dec 2024 13:12:58 +1100 Subject: [PATCH] Stop hiding package:objective_c build warnings, and fix exisitng warnings --- pkgs/objective_c/src/objective_c.m | 2 +- pkgs/objective_c/test/setup.dart | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/pkgs/objective_c/src/objective_c.m b/pkgs/objective_c/src/objective_c.m index 41b35063b..481457435 100644 --- a/pkgs/objective_c/src/objective_c.m +++ b/pkgs/objective_c/src/objective_c.m @@ -27,7 +27,7 @@ @interface DOBJCWaiter : NSObject {} @property(strong) NSCondition* cond; @property bool done; -(void)signal; --(void)wait; +-(void)wait: (double)timeoutSeconds; @end @implementation DOBJCWaiter diff --git a/pkgs/objective_c/test/setup.dart b/pkgs/objective_c/test/setup.dart index 4c63b4d6f..e78993627 100644 --- a/pkgs/objective_c/test/setup.dart +++ b/pkgs/objective_c/test/setup.dart @@ -30,8 +30,6 @@ const objCFlags = [ '-x', 'objective-c', '-fobjc-arc', - '-framework', - 'Foundation' ]; final outputFile = _resolve('test/objective_c.dylib'); @@ -57,10 +55,10 @@ void _runClang(List flags, String output) { const exec = 'clang'; print('Running: $exec ${args.join(" ")}'); final proc = Process.runSync(exec, args); + print(proc.stdout); + print(proc.stderr); if (proc.exitCode != 0) { exitCode = proc.exitCode; - print(proc.stdout); - print(proc.stderr); throw Exception('Command failed: $exec ${args.join(" ")}'); } print('Generated $output');