Skip to content

Commit

Permalink
Merge pull request #167 from jszumski/jszumski/fix-xcode-15-warning
Browse files Browse the repository at this point in the history
Fix Xcode 15 warning in generated `main.m`
  • Loading branch information
Justin Martin authored Oct 2, 2023
2 parents fc94b68 + bd8f825 commit a602226
Show file tree
Hide file tree
Showing 59 changed files with 60 additions and 60 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ GEM
escape (0.0.4)
ethon (0.12.0)
ffi (>= 1.3.0)
ffi (1.13.1)
ffi (1.16.2)
fourflusher (2.3.1)
fuzzy_match (2.0.4)
gh_inspector (1.1.3)
Expand Down Expand Up @@ -188,4 +188,4 @@ DEPENDENCIES
rubocop (~> 0.55.0)

BUNDLED WITH
2.3.26
2.4.19
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.2.4
2.2.5
2 changes: 1 addition & 1 deletion lib/cocoapods/generate/installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ def create_main_source_file(project, pod_targets, name)
source_file.open('w') do |f|
f << import_statements.join("\n")
f << "\n" unless import_statements.empty?
f << "int main() { return 0; }\n"
f << "int main(void) { return 0; }\n"
end

source_file
Expand Down
2 changes: 1 addition & 1 deletion spec/integration/fork/after/gen/Foo/App-iOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import Foo;
int main() { return 0; }
int main(void) { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/fork/after/gen/Foo/App-macOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import Foo;
int main() { return 0; }
int main(void) { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/fork/after/gen/Foo/App-tvOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import Foo;
int main() { return 0; }
int main(void) { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/fork/after/gen/Foo/App-watchOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import Foo;
int main() { return 0; }
int main(void) { return 0; }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
int main() { return 0; }
int main(void) { return 0; }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
int main() { return 0; }
int main(void) { return 0; }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
int main() { return 0; }
int main(void) { return 0; }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
int main() { return 0; }
int main(void) { return 0; }
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import Forkable;
int main() { return 0; }
int main(void) { return 0; }
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import Forkable;
int main() { return 0; }
int main(void) { return 0; }
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import Forkable;
int main() { return 0; }
int main(void) { return 0; }
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import Forkable;
int main() { return 0; }
int main(void) { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/local_sources/after/gen/E/App-iOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import E;
int main() { return 0; }
int main(void) { return 0; }
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import E;
int main() { return 0; }
int main(void) { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/local_sources/after/gen/E/App-tvOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import E;
int main() { return 0; }
int main(void) { return 0; }
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import E;
int main() { return 0; }
int main(void) { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/A/App-iOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import A;
int main() { return 0; }
int main(void) { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/A/App-macOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import A;
int main() { return 0; }
int main(void) { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/A/App-tvOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import A;
int main() { return 0; }
int main(void) { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/A/App-watchOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import A;
int main() { return 0; }
int main(void) { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/B/App-iOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import B;
int main() { return 0; }
int main(void) { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/B/App-macOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import B;
int main() { return 0; }
int main(void) { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/B/App-tvOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import B;
int main() { return 0; }
int main(void) { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/B/App-watchOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import B;
int main() { return 0; }
int main(void) { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/C/App-iOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import C;
int main() { return 0; }
int main(void) { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/C/App-macOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import C;
int main() { return 0; }
int main(void) { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/C/App-tvOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import C;
int main() { return 0; }
int main(void) { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/C/App-watchOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import C;
int main() { return 0; }
int main(void) { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/D/App-iOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import D;
int main() { return 0; }
int main(void) { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/D/App-macOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import D;
int main() { return 0; }
int main(void) { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/D/App-tvOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import D;
int main() { return 0; }
int main(void) { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/D/App-watchOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import D;
int main() { return 0; }
int main(void) { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/E/App-iOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import E;
int main() { return 0; }
int main(void) { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/E/App-macOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import E;
int main() { return 0; }
int main(void) { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/E/App-tvOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import E;
int main() { return 0; }
int main(void) { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/E/App-watchOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import E;
int main() { return 0; }
int main(void) { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/F/App-iOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import F;
int main() { return 0; }
int main(void) { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/F/App-macOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import F;
int main() { return 0; }
int main(void) { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/F/App-tvOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import F;
int main() { return 0; }
int main(void) { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/F/App-watchOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import F;
int main() { return 0; }
int main(void) { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/G/App-iOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import G;
int main() { return 0; }
int main(void) { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/G/App-macOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import G;
int main() { return 0; }
int main(void) { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/G/App-tvOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import G;
int main() { return 0; }
int main(void) { return 0; }
2 changes: 1 addition & 1 deletion spec/integration/monorepo/after/gen/G/App-watchOS/main.m
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import G;
int main() { return 0; }
int main(void) { return 0; }
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import Foo;
int main() { return 0; }
int main(void) { return 0; }
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import Foo;
int main() { return 0; }
int main(void) { return 0; }
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import Foo;
int main() { return 0; }
int main(void) { return 0; }
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import Foo;
int main() { return 0; }
int main(void) { return 0; }
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
@import E;
@import F;
@import G;
int main() { return 0; }
int main(void) { return 0; }
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
@import E;
@import F;
@import G;
int main() { return 0; }
int main(void) { return 0; }
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
@import E;
@import F;
@import G;
int main() { return 0; }
int main(void) { return 0; }
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
@import E;
@import F;
@import G;
int main() { return 0; }
int main(void) { return 0; }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
int main() { return 0; }
int main(void) { return 0; }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
int main() { return 0; }
int main(void) { return 0; }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
int main() { return 0; }
int main(void) { return 0; }
Original file line number Diff line number Diff line change
@@ -1 +1 @@
int main() { return 0; }
int main(void) { return 0; }

0 comments on commit a602226

Please sign in to comment.