Skip to content

compiler warnings when in use #33

Description

@laoshaw

I got lots of warnings and they're all warnings about two lines in minunit.h

In file included from minunit_example.c:1:
minunit_example.c: In function ‘test_suite’:
minunit.h:110:43: warning: comparing floating-point with ‘==’ or ‘!=’ is unsafe [-Wfloat-equal]
  110 |     MU__SAFE_BLOCK(if (minunit_real_timer == 0 && minunit_proc_timer == 0) {   \
      |                                           ^~
minunit.h:97:9: note: in definition of macro ‘MU__SAFE_BLOCK’
   97 |         block                                                                  \
      |         ^~~~~

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions