This reverts commit
800c86d5, as that was deemed too invasive.
We do keep the change to tee.c to allow using -O3 without warnings.
For other optimization options like -O0, -Og, -O1, -Os,
one can use WERROR_CFLAGS= to stop warnings inducing a build failure.
struct stat const *src_sb)
{
char *buf = NULL;
- int dest_desc IF_LINT ( = -1);
- int dest_errno IF_LINT ( = 0);
+ int dest_desc;
+ int dest_errno;
int source_desc;
mode_t src_mode = src_sb->st_mode;
mode_t extra_permissions;
while ((slash = strchr (slash, '/')))
{
- struct dir_attr *new IF_LINT ( = NULL);
+ struct dir_attr *new;
bool missing_dir;
*slash = '\0';
return cnt == digest_bin_bytes;
}
-#if defined __GNUC__ && (__GNUC__ + (__GNUC_MINOR__ >= 7) > 4)
-# pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
-#endif
static bool
digest_check (char const *checkfile_name)
{
bytes. Then, for each new buffer we read, also write an old one. */
bool eof = false;
- size_t n_read IF_LINT ( = 0);
+ size_t n_read;
bool buffered_enough;
size_t i, i_next;
char **b = NULL;
char const *backup_suffix = NULL;
char *version_control_string = NULL;
char const *target_directory = NULL;
- int destdir_fd IF_LINT ( = -1);
+ int destdir_fd;
bool no_target_directory = false;
int n_files;
char **file;
for (size_t i = 0; i < nfiles && files_open; i++)
{
- int chr IF_LINT ( = -1); /* Input character. */
+ int chr; /* Input character. */
int err; /* Input errno value. */
bool sometodo = false; /* Input chars to process. */
read_line (COLUMN *p)
{
int c;
- int chars IF_LINT ( =0);
+ int chars;
int last_input_position;
int j, k;
COLUMN *q;
struct tempnode *saved_temphead;
int saved_errno;
double wait_retry = 0.25;
- pid_t pid IF_LINT ( = -1);
+ pid_t pid;
struct cs_status cs;
if (pipe2 (pipefds, O_CLOEXEC) < 0)