Skip to content
Snippets Groups Projects
  1. Feb 03, 2020
  2. Feb 02, 2020
  3. Jan 31, 2020
  4. Jan 30, 2020
  5. Jan 29, 2020
  6. Jan 21, 2020
  7. Jan 20, 2020
  8. Jan 19, 2020
  9. Jan 15, 2020
  10. Jan 09, 2020
  11. Jan 04, 2020
    • Michael Forney's avatar
      litest: Fix warnings about discarded qualifiers with check-0.13.0 · 25a940a5
      Michael Forney authored
      
      check 0.13.0 introduced a new struct type TTest for test functions
      instead of just a function. However, now the tcase_add_* functions use
      `const Ttest *`, and since litest stores the test case in a `void *`,
      we get warnings like the following:
      
      ../test/test-touchpad.c:7079:30: warning: passing argument 3 of '_litest_add' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
        litest_add("touchpad:fuzz", touchpad_fuzz, LITEST_TOUCHPAD, LITEST_ANY);
      
      To fix this, use `const void *`, which is compatible with both APIs.
      
      Signed-off-by: default avatarMichael Forney <mforney@mforney.org>
      25a940a5
  12. Jan 03, 2020
  13. Jan 02, 2020
  14. Dec 26, 2019
  15. Dec 23, 2019
  16. Dec 11, 2019
  17. Dec 05, 2019
Loading