Clang: Include what you use

This commit is contained in:
Shahram Najm 2020-06-09 13:21:21 +01:00
parent 9327b080be
commit f952d632c4
8 changed files with 2 additions and 13 deletions

View File

@ -22,9 +22,6 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#if !(defined(_WIN32) && defined(_MSC_VER))
#include <unistd.h>
#endif
#include "eccodes.h" #include "eccodes.h"

View File

@ -15,7 +15,7 @@
#include "grib_api_internal.h" #include "grib_api_internal.h"
#include <math.h> #include <math.h>
#include <stdint.h>
/* /*
This is used by make_class.pl This is used by make_class.pl

View File

@ -9,7 +9,6 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <time.h>
#include <pthread.h> #include <pthread.h>
#include <assert.h> #include <assert.h>
#include "grib_api.h" #include "grib_api.h"

View File

@ -15,9 +15,6 @@
#include "grib_api_internal.h" #include "grib_api_internal.h"
#include <assert.h> #include <assert.h>
#ifndef ECCODES_ON_WINDOWS
#include <unistd.h>
#endif
static void usage(const char* prog) static void usage(const char* prog)
{ {

View File

@ -7,7 +7,7 @@
* In applying this licence, ECMWF does not waive the privileges and immunities granted to it by * In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
* virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction. * virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
*/ */
#include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>

View File

@ -23,7 +23,6 @@
#include <grib_api.h> #include <grib_api.h>
#include <errno.h> #include <errno.h>
#include <string.h> #include <string.h>
#include <math.h>
#include <sys/types.h> #include <sys/types.h>
#include "tigge_tools.h" #include "tigge_tools.h"

View File

@ -23,7 +23,6 @@
#include <grib_api.h> #include <grib_api.h>
#include <errno.h> #include <errno.h>
#include <string.h> #include <string.h>
#include <math.h>
#include <sys/types.h> #include <sys/types.h>
#ifndef ECCODES_ON_WINDOWS #ifndef ECCODES_ON_WINDOWS

View File

@ -15,8 +15,6 @@
#include "tigge_tools.h" #include "tigge_tools.h"
#include "eccodes_windef.h" #include "eccodes_windef.h"
#include <sys/types.h>
#ifndef ECCODES_ON_WINDOWS #ifndef ECCODES_ON_WINDOWS
#include <dirent.h> #include <dirent.h>
#else #else