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

tests: add missing header for difftime #371

Merged
merged 3 commits into from
Sep 3, 2024
Merged

Commits on Mar 17, 2024

  1. tests: add missing header for difftime

    With GCC 14, which makes implicit function declarations an error by default:
    ```
    TestReadMask.c: In function ‘ElapsedTime’:
    TestReadMask.c:746:15: error: implicit declaration of function ‘difftime’ [-Wimplicit-function-declaration]
      746 |     ms = (int)difftime(end_time.tv_sec, start_time.tv_sec);
          |               ^~~~~~~~
    TestReadMask.c:62:1: note: ‘difftime’ is defined in header ‘<time.h>’; this is probably fixable by adding ‘#include <time.h>’
       61 | #include <std.c>
      +++ |+#include <time.h>
       62 |
    ```
    
    Fix the include guards and include <time.h> unconditionally (for difftime) and <string.h>
    unconditionally too (for memcpy).
    
    Signed-off-by: Sam James <sam@gentoo.org>
    thesamesam committed Mar 17, 2024
    Configuration menu
    Copy the full SHA
    f073778 View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2024

  1. Configuration menu
    Copy the full SHA
    43f090f View commit details
    Browse the repository at this point in the history
  2. Undo last WS change

    markcmiller86 authored Sep 3, 2024
    Configuration menu
    Copy the full SHA
    ab4af16 View commit details
    Browse the repository at this point in the history