[riot-commits] [RIOT-OS/RIOT] d19e88: arm_common: no needless `_gettimeofday()` warning

René Kijewski kijewski at mi.fu-berlin.de
Mon May 5 14:44:32 CEST 2014


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: d19e885fb97dc74e77fc9073ed29c10e65a3d4e0
      https://github.com/RIOT-OS/RIOT/commit/d19e885fb97dc74e77fc9073ed29c10e65a3d4e0
  Author: René Kijewski <rene.kijewski at fu-berlin.de>
  Date:   2014-05-05 (Mon, 05 May 2014)

  Changed paths:
    A cpu/arm_common/gettimeofday.c
    M cpu/arm_common/syscalls.c

  Log Message:
  -----------
  arm_common: no needless `_gettimeofday()` warning

The `arm_common` syscalls implement `_gettimeofday()` for the benefit of
newlib. The syscall call only work if the `rtc` module or the `vtimer`
modules is transcluded. If neither module is used, a warning is printed
by means of `#warning`.

This warning is useless if the user does not invoke `gettimeofday()`.
Further this warning prevents the use of `-Werror`.

This PR puts the function in its own file, that will only be linked if
it was used. And if the function was used, then a link time error occur
if neither `rtc` nor `vtimer` was transcluded.


  Commit: 35492617c8c666421f32b5e41a6b17c28dbe9dd5
      https://github.com/RIOT-OS/RIOT/commit/35492617c8c666421f32b5e41a6b17c28dbe9dd5
  Author: René Kijewski <kijewski at mi.fu-berlin.de>
  Date:   2014-05-05 (Mon, 05 May 2014)

  Changed paths:
    A cpu/arm_common/gettimeofday.c
    M cpu/arm_common/syscalls.c

  Log Message:
  -----------
  Merge pull request #1097 from Kijewski/gettimeofday-warning

arm_common: no needless `_gettimeofday()` warning


Compare: https://github.com/RIOT-OS/RIOT/compare/750b237f8dec...35492617c8c6


More information about the commits mailing list