[Trivial] Disable compiler warnings about unused functions #7169

pull paveljanik wants to merge 1 commits into bitcoin:master from paveljanik:20151204_scheduler_tests_warning changing 1 files +1 −1
  1. paveljanik commented at 7:17 AM on December 4, 2015: contributor

    After #7144, some compilers emit warnings about unused functions in the scheduler tests:

      CXX      test/test_test_bitcoin-scheduler_tests.o
    test/scheduler_tests.cpp:18:13: warning: function 'microTask' is not needed and will not be emitted [-Wunneeded-internal-declaration]
    static void microTask(CScheduler& s, boost::mutex& mutex, int& counter, int delta, boost::chrono::system_clock::time_point rescheduleTime)
                ^
    test/scheduler_tests.cpp:31:13: warning: unused function 'MicroSleep' [-Wunused-function]
    static void MicroSleep(uint64_t n)
                ^
    2 warnings generated.
    

    Moving #if 0 a bit up helps to silence this warning.

  2. Disable compiler warnings about unused functions. 248966698a
  3. laanwj commented at 8:40 AM on December 4, 2015: member

    TBH, the underlying issue with the test (or scheduler) should be solved instead. This is a good reminder. No need to silence a warning that points out an actual problem.

    See #7144, #6540

  4. laanwj closed this on Jan 20, 2016

  5. avar referenced this in commit b5d33fd6f1 on May 5, 2016
  6. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 18:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me