aboutsummaryrefslogtreecommitdiffstats
path: root/src/common.h
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2025-03-08 13:44:00 +0100
committerMattias Andrée <m@maandree.se>2025-03-08 13:44:00 +0100
commitc18006147ed0ffba6144c25e564aa95c4dbba99a (patch)
tree89d3ce8cc2ea7cd6450c54f05425f671396f26fa /src/common.h
parentRemove near empty translation sets (diff)
downloadredshift-ng-c18006147ed0ffba6144c25e564aa95c4dbba99a.tar.gz
redshift-ng-c18006147ed0ffba6144c25e564aa95c4dbba99a.tar.bz2
redshift-ng-c18006147ed0ffba6144c25e564aa95c4dbba99a.tar.xz
Fix warnings
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/common.h b/src/common.h
index 4ac8b53..0b89b8f 100644
--- a/src/common.h
+++ b/src/common.h
@@ -81,7 +81,9 @@
#define N_(s) s
-#if defined(__GNUC__)
+#if defined(__clang__)
+# pragma clang diagnostic ignored "-Wunsafe-buffer-usage" /* broken in clang 19.1.7 */
+#elif defined(__GNUC__)
# pragma GCC diagnostic ignored "-Wunsuffixed-float-constants"
#endif
@@ -394,10 +396,10 @@ void hooks_signal_period_change(enum period prev_period, enum period period);
/**
* Create a pipe(7) where both ends have O_NONBLOCK applied
*
- * @param Output parameter for the pipe's file descriptors:
- * 0) reading file descriptor, and
- * 1) writing file descriptor.
- * @return 0 on success, -1 on failure
+ * @param pipefds Output parameter for the pipe's file descriptors:
+ * 0) reading file descriptor, and
+ * 1) writing file descriptor.
+ * @return 0 on success, -1 on failure
*/
int pipeutils_create_nonblocking(int pipefds[2]);