tree-wide: use the same comment for work-around initializations
This should make it easier to remove those warnings when the compiler gets smarter. Not sure if I got them all... Double space before the comment start to make it easier to separate from the preceding line.
This commit is contained in:
@@ -660,7 +660,7 @@ int cg_remove_xattr(const char *controller, const char *path, const char *name)
|
||||
|
||||
int cg_pid_get_path(const char *controller, pid_t pid, char **ret_path) {
|
||||
_cleanup_fclose_ FILE *f = NULL;
|
||||
const char *fs, *controller_str = NULL; /* silence gcc warning about unitialized variable */
|
||||
const char *fs, *controller_str = NULL; /* avoid false maybe-uninitialized warning */
|
||||
int unified, r;
|
||||
|
||||
assert(pid >= 0);
|
||||
|
||||
+1
-1
@@ -1072,7 +1072,7 @@ int copy_file_full(
|
||||
|
||||
_cleanup_close_ int fdf = -1;
|
||||
struct stat st;
|
||||
int fdt = -1, r;
|
||||
int r, fdt = -1; /* avoid false maybe-uninitialized warning */
|
||||
|
||||
assert(from);
|
||||
assert(to);
|
||||
|
||||
Reference in New Issue
Block a user