Browse Source

disable build warnings in utils

Disable some build warnings in utils.

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Peter S. Mazinger 13 years ago
parent
commit
33c5506e97
2 changed files with 2 additions and 1 deletions
  1. 1 0
      utils/getconf.c
  2. 1 1
      utils/ldconfig.c

+ 1 - 0
utils/getconf.c

@@ -15,6 +15,7 @@
    along with this program; if not, write to the Free Software Foundation,
    Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
+#define _GNU_SOURCE 1
 #include <unistd.h>
 #include <errno.h>
 #include <string.h>

+ 1 - 1
utils/ldconfig.c

@@ -568,7 +568,7 @@ static char *get_extpath(void)
 	if ((file = fopen(realconffile, "r")) != NULL) {
 		fstat(fileno(file), &st);
 		res = xmalloc(st.st_size + 1);
-		fread(res, 1, st.st_size, file);
+		(void)fread(res, 1, st.st_size, file);
 		fclose(file);
 		res[st.st_size] = '\0';