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

can't compile on Ma OS X with --Werror flag #46

Open
fotonmoton opened this issue Oct 14, 2018 · 0 comments
Open

can't compile on Ma OS X with --Werror flag #46

fotonmoton opened this issue Oct 14, 2018 · 0 comments

Comments

@fotonmoton
Copy link

got errors:

munit.c:652:47: error: missing field 'denom'
      initializer [-Werror,-Wmissing-field-initializers]
  static mach_timebase_info_data_t tbi = { 0, };
                                           


munit.c:676:47: error: missing field 'denom'
      initializer [-Werror,-Wmissing-field-initializers]
  static mach_timebase_info_data_t tbi = { 0, };
                                              


munit.c:907:39: error: missing field
      'nanoseconds' initializer [-Werror,-Wmissing-field-initializers]
  struct PsnipClockTimespec wc = { 0, };
                                      


munit.c:1175:53: error: missing field
      'nanoseconds' initializer [-Werror,-Wmissing-field-initializers]
  struct PsnipClockTimespec wall_clock_begin = { 0, }, wall_clock_end = { 0, };
                                                    


munit.c:1175:78: error: missing field
      'nanoseconds' initializer [-Werror,-Wmissing-field-initializers]
  struct PsnipClockTimespec wall_clock_begin = { 0, }, wall_clock_end = { 0, };
                                                                             


munit.c:1176:52: error: missing field
      'nanoseconds' initializer [-Werror,-Wmissing-field-initializers]
  struct PsnipClockTimespec cpu_clock_begin = { 0, }, cpu_clock_end = { 0, };
                                                   


munit.c:1176:76: error: missing field
      'nanoseconds' initializer [-Werror,-Wmissing-field-initializers]
  struct PsnipClockTimespec cpu_clock_begin = { 0, }, cpu_clock_end = { 0, };
                                                                           

clang -v:
Apple LLVM version 9.0.0 (clang-900.0.39.2) Target: x86_64-apple-darwin17.4.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

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

No branches or pull requests

1 participant