[openwrt/openwrt] firmware-utils: zyimage: drop POSIX SOURCE defines
LEDE Commits
lede-commits at lists.infradead.org
Tue Apr 13 13:01:11 BST 2021
rmilecki pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/489aa752d7276de8fd972d9554e0be938be64b4b
commit 489aa752d7276de8fd972d9554e0be938be64b4b
Author: Rafał Miłecki <rafal at milecki.pl>
AuthorDate: Fri Apr 9 11:36:57 2021 +0200
firmware-utils: zyimage: drop POSIX SOURCE defines
This fixes:
src/zyimage.c:10:0: warning: "_POSIX_SOURCE" redefined
src/zyimage.c:11:0: warning: "_POSIX_C_SOURCE" redefined
This change has been tested on Linux with -Wextra and on Mac OS.
Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
---
tools/firmware-utils/src/zyimage.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/tools/firmware-utils/src/zyimage.c b/tools/firmware-utils/src/zyimage.c
index 6aacf2ff1b..4f7cfd6f43 100644
--- a/tools/firmware-utils/src/zyimage.c
+++ b/tools/firmware-utils/src/zyimage.c
@@ -7,8 +7,6 @@
*
*/
-#define _POSIX_SOURCE
-#define _POSIX_C_SOURCE 199309L /* getopt */
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
More information about the lede-commits
mailing list