@I add #include "config.h" and add an explicit void to remove warnings
with some compilers
This commit is contained in:
parent
7ee448c941
commit
d3818bb045
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
#include <config.h>
|
||||
|
||||
/* end standard C headers. */
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue