@I add #include "config.h" and add an explicit void to remove warnings

with some compilers
This commit is contained in:
bebbo 2017-02-18 11:33:19 +01:00
parent 7ee448c941
commit d3818bb045
9 changed files with 12 additions and 2 deletions

View File

@ -26,6 +26,7 @@
when name truncated. No way to specify pos_end. Error messages should be
more consistant. */
#include "config.h"
#include "bfd.h"
#include "libiberty.h"
#include "progress.h"
@ -351,7 +352,7 @@ static FILE *output_file = NULL;
static bfd *output_bfd = NULL;
static void
remove_output ()
remove_output (void)
{
if (output_filename != NULL)
{

View File

@ -20,6 +20,7 @@
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <config.h>
/* end standard C headers. */

View File

@ -50,6 +50,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
*/
#define DONTDECLARE_MALLOC
#include "config.h"
#include "bfd.h"
#include "bucomm.h"
#include "arsup.h"

View File

@ -25,6 +25,7 @@
This file looks after requests from arparse.y, to provide the MRI
style librarian command syntax + 1 word LIST. */
#include "config.h"
#include "bfd.h"
#include "arsup.h"
#include "libiberty.h"

View File

@ -18,6 +18,7 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "config.h"
#include "binemul.h"
extern bin_emulation_xfer_type bin_dummy_emulation;

View File

@ -22,6 +22,7 @@
/* We might put this in a library someday so it could be dynamically
loaded, but for now it's not necessary. */
#include "config.h"
#include "bfd.h"
#include "bfdver.h"
#include "libiberty.h"
@ -34,9 +35,11 @@
#ifndef HAVE_TIME_T_IN_TIME_H
#ifndef HAVE_TIME_T_IN_TYPES_H
#ifndef _TIME_T_DEFINED
typedef long time_t;
#endif
#endif
#endif
static const char * endian_string PARAMS ((enum bfd_endian));
static int display_target_list PARAMS ((void));

View File

@ -18,6 +18,7 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA. */
#include "config.h"
#include "bfd.h"
#include "bucomm.h"

View File

@ -19,6 +19,7 @@ along with this program; if not, write to the Free Software
Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include <stdio.h>
#include "config.h"
#include "bfd.h"
#include "bfdver.h"
#include "bucomm.h"

View File

@ -162,7 +162,7 @@ static struct bfd_link_callbacks link_callbacks =
struct bfd_link_info link_info;
static void
remove_output ()
remove_output (void)
{
if (output_filename)
{