Please see the attached patch. It fixes build failure on FreeBSD with clang when -Werror is enabled.
Created attachment 121985 [details] [review]
Fix -Werror build for clang and FreeBSD
Replace -D_POSIX_SOURCE with -D_POSIX_C_SOURCE=200809L because the
former macro limits POSIX standard version to 1003.1-1988 on FreeBSD,
which causes atoll function to be unavailable.
-Wtautological-constant-out-of-range-compare is ignored in a
g_return_val_if_fail because the warning cannot be avoided.
Self assignments are removed to prevent warnings.
Ping ... It is annoying to see -Werror enabled without getting warnings fixed.
-- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/telepathy/telepathy-logger/issues/43.