]> git.ipfire.org Git - thirdparty/FORT-validator.git/commitdiff
Remove <sys/cdefs.h> header, avoid cpp warnings during compilation
authorpcarana <pc.moreno2099@gmail.com>
Thu, 31 Oct 2019 19:55:20 +0000 (13:55 -0600)
committerpcarana <pc.moreno2099@gmail.com>
Thu, 7 Nov 2019 16:59:31 +0000 (10:59 -0600)
src/Makefile.am
src/log.h
src/rsync/rsync.c

index 3fe7f2d7e5652a1b58654dcc7b35ffc833632ae8..3866969d631c8216ac8ae1a417577644f7257c55 100644 (file)
@@ -103,7 +103,7 @@ fort_SOURCES += slurm/slurm_parser.c slurm/slurm_parser.h
 include asn1/asn1c/Makefile.include
 fort_SOURCES += $(ASN_MODULE_SRCS) $(ASN_MODULE_HDRS)
 
-fort_CFLAGS  = -Wall
+fort_CFLAGS  = -Wall -Wno-cpp
 # Feel free to temporarily remove this one if you're not using gcc 7.3.0.
 #fort_CFLAGS += $(GCC_WARNS)
 fort_CFLAGS += -std=gnu11 -O2 -g $(FORT_FLAGS)
index 75c5b67575d39a91e7a12f51cc5a33c0fa5d59f8..4aa0dc5e3ebb878c452edc98024fcab5bf599c07 100644 (file)
--- a/src/log.h
+++ b/src/log.h
@@ -1,7 +1,6 @@
 #ifndef SRC_LOG_H_
 #define SRC_LOG_H_
 
-#include <sys/cdefs.h>
 #include <stdbool.h>
 #include "incidence/incidence.h"
 
index 80bafea8fc6047481b44563246f65db2f9247b6f..6326bb79737d11e3554aed3977ee5bc121b2b7b1 100644 (file)
@@ -4,7 +4,6 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include <signal.h> /* SIGINT, SIGQUIT, etc */
-#include <sys/cdefs.h>
 #include <sys/queue.h>
 #include <sys/stat.h>
 #include <sys/wait.h>