linux-test-project / ltp

Linux Test Project (mailing list: https://lists.linux.it/listinfo/ltp)
https://linux-test-project.readthedocs.io/
GNU General Public License v2.0
2.28k stars 999 forks source link

clock_settime: fix compile complain #976

Closed Rtoax closed 1 year ago

Rtoax commented 1 year ago
clock_settime02.c:17: warning: "NSEC_PER_SEC" redefined
   17 | #define NSEC_PER_SEC (1000000000L)
      |
In file included from ../../../../include/tst_timer.h:20,
                 from ../../../../include/time64_variants.h:20,
                 from clock_settime02.c:12:
../../../../include/lapi/common_timers.h:15: note: this is the location of the previous definition
   15 | #define NSEC_PER_SEC (1000000000LL)
      |
metan-ucw commented 1 year ago

Looks obviously correct.

Reviewed-by: Cyril Hrubis chrubis@suse.cz

pevik commented 1 year ago

You opened also https://github.com/linux-test-project/ltp/pull/985, which I merged as 4e824f9db0dd8b78a4013ed0281fb9686aadb2b8, thus closing here.