projects
/
openwrt
/
staging
/
thess.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6d6637
)
firmware-utils: zyimage: drop POSIX SOURCE defines
author
Rafał Miłecki
<rafal@milecki.pl>
Fri, 9 Apr 2021 09:36:57 +0000
(11:36 +0200)
committer
Rafał Miłecki
<rafal@milecki.pl>
Tue, 13 Apr 2021 11:18:17 +0000
(13:18 +0200)
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@milecki.pl>
tools/firmware-utils/src/zyimage.c
patch
|
blob
|
history
diff --git
a/tools/firmware-utils/src/zyimage.c
b/tools/firmware-utils/src/zyimage.c
index 6aacf2ff1bd94fa55258f30a6d4aa9e93312b072..4f7cfd6f4337dfe0b2d6249feed6c816b4f3a6ee 100644
(file)
--- 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>