mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:17:34 +00:00
Everywhere: Switch from (void) to [[maybe_unused]] (#4473)
Problem: - `(void)` simply casts the expression to void. This is understood to indicate that it is ignored, but this is really a compiler trick to get the compiler to not generate a warning. Solution: - Use the `[[maybe_unused]]` attribute to indicate the value is unused. Note: - Functions taking a `(void)` argument list have also been changed to `()` because this is not needed and shows up in the same grep command.
This commit is contained in:
parent
4421d98e30
commit
765936ebae
103 changed files with 219 additions and 362 deletions
|
@ -61,8 +61,8 @@ struct syslog_data {
|
|||
#define LOG_DAEMON ( 3 << 3)
|
||||
#define LOG_AUTH ( 4 << 3)
|
||||
#define LOG_SYSLOG ( 5 << 3)
|
||||
#define LOG_LPR ( 6 << 3)
|
||||
#define LOG_NEWS ( 7 << 3)
|
||||
#define LOG_LPR ( 6 << 3)
|
||||
#define LOG_NEWS ( 7 << 3)
|
||||
#define LOG_UUCP ( 8 << 3)
|
||||
#define LOG_CRON ( 9 << 3)
|
||||
#define LOG_AUTHPRIV (10 << 3)
|
||||
|
@ -169,7 +169,7 @@ void vsyslog(int, const char* message, va_list);
|
|||
void vsyslog_r(int, struct syslog_data* data, const char* message, va_list);
|
||||
void openlog(const char*, int, int);
|
||||
void openlog_r(const char*, int, int, struct syslog_data*);
|
||||
void closelog(void);
|
||||
void closelog();
|
||||
void closelog_r(struct syslog_data*);
|
||||
int setlogmask(int);
|
||||
int setlogmask_r(int, struct syslog_data*);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue