Fixed warning that did not respect -w flag.

This commit is contained in:
Shamus Hammons 2014-01-14 12:06:18 -06:00
parent caa7d37ad5
commit a9928b064f
2 changed files with 5 additions and 4 deletions

7
rln.c
View File

@ -1961,7 +1961,7 @@ int doobj(char * fname, char * ptr, char * aname, int flags)
// Round BSS off to alignment boundary
Ofile->o_header.bsize = (Ofile->o_header.bsize + secalign) & ~secalign;
if (Ofile->o_header.dsize & 7)
if ((Ofile->o_header.dsize & 7) && wflag)
{
printf("Warning: data segment size of ");
put_name(Ofile);
@ -2091,8 +2091,9 @@ int pladd(char * ptr, char * fname)
}
if (strlen(path_tail(fname)) > FNLEN - 1)
{ // Error on excessive filename length
printf("File name too long: %s (sorry!)\n",fname);
{
// Error on excessive filename length
printf("File name too long: %s (sorry!)\n", fname);
return 1;
}

2
rln.h
View File

@ -52,7 +52,7 @@
#define MAJOR 1 // Major version number
#define MINOR 2 // Minor version number
#define PATCH 0 // Patch release number
#define PATCH 1 // Patch release number
#ifdef WIN32
#define PLATFORM "Win32" // Release platform - Windows