Skip to content

Commit 71e8c1e

Browse files
committed
main: improved includes
- remove unused includes - compat/alarm.h - export unistd.h (otherwise compat/alarm.h would be seen as unneeded because unistd.h include per se)
1 parent 477729a commit 71e8c1e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/compat/alarm.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* using default SIGALRM action which is terminate).
77
*/
88
/*
9-
* Copyright (c) 2019-2025 CESNET, zájmové sdružení právnických osob
9+
* Copyright (c) 2019-2026 CESNET, zájmové sdružení právnických osob
1010
* All rights reserved.
1111
*
1212
* Redistribution and use in source and binary forms, with or without
@@ -49,7 +49,7 @@
4949
EXTERN_C void alarm(unsigned int sec);
5050

5151
#else
52-
#include <unistd.h>
52+
#include <unistd.h> // IWYU pragma: export
5353
#endif /* _WIN32 */
5454

5555
#endif // defined COMPAT_ALARM_H

src/main.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@
7474
#include <getopt.h>
7575
#include <initializer_list> // for initializer_list
7676
#include <iostream>
77-
#include <map> // for map
7877
#include <memory>
7978
#include <pthread.h>
8079
#include <stdexcept>
@@ -83,7 +82,6 @@
8382
#include <unistd.h> // for optarg, optind, STDERR...
8483
#include <unordered_map> // for unordered_map
8584
#include <utility> // for move
86-
#include <vector> // for vector
8785

8886
#define WANT_PTHREAD_NULL
8987
#include "audio/audio.h" // for audio_options, additional_aud...

0 commit comments

Comments
 (0)