Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dynamic_images.h doesn't build on gcc 3 #160

Closed
GoogleCodeExporter opened this issue Apr 29, 2015 · 2 comments
Closed

dynamic_images.h doesn't build on gcc 3 #160

GoogleCodeExporter opened this issue Apr 29, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

In file included from
/Users/luser/build/mozilla/toolkit/airbag/airbag/src/client/mac/handler/dynamic_
images.cc:35:
/Users/luser/build/mozilla/toolkit/airbag/airbag/src/client/mac/handler/dynamic_
images.h:
In
   member function `void google_breakpad::DynamicImage::Print()':
/Users/luser/build/mozilla/toolkit/airbag/airbag/src/client/mac/handler/dynamic_
images.h:156:
error: parse
   error before `;' token
/Users/luser/build/mozilla/toolkit/airbag/airbag/src/client/mac/handler/dynamic_
images.h:
In
   member function `void google_breakpad::DynamicImages::TestPrint()':
/Users/luser/build/mozilla/toolkit/airbag/airbag/src/client/mac/handler/dynamic_
images.h:281:
warning: invalid
   conversion from `int' to `google_breakpad::MachHeader*'
/Users/luser/build/mozilla/toolkit/airbag/airbag/src/client/mac/handler/dynamic_
images.h:281:
error: parse
   error before `;' token
/Users/luser/build/mozilla/toolkit/airbag/airbag/src/client/mac/handler/dynamic_
images.h:281:
warning: unused
   variable `google_breakpad::MachHeader*_dyld_get_image_header'

It looks like gcc 3 fails on the constructs:
MachHeader(*GetMachHeader()).Print();
MachHeader(*_dyld_get_image_header(i)).Print();
It looks like it's the dereferencing of the function return value that
fails.  This short patch fixes it.

Original issue reported on code.google.com by ted.mielczarek on 4 May 2007 at 2:10

Attachments:

@GoogleCodeExporter
Copy link
Author

Needs an extra const to compile on x86.

Original comment by ted.mielczarek on 4 May 2007 at 3:00

Attachments:

@GoogleCodeExporter
Copy link
Author

Original comment by ted.mielczarek on 4 May 2007 at 7:37

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant