Fixed warning that did not respect -w flag.
authorShamus Hammons <jlhamm@acm.org>
Tue, 14 Jan 2014 18:06:18 +0000 (12:06 -0600)
committerShamus Hammons <jlhamm@acm.org>
Tue, 14 Jan 2014 18:06:18 +0000 (12:06 -0600)
rln.c
rln.h

diff --git a/rln.c b/rln.c
index 02d2ca85273bd1a7c884acc5758c85ba90fd351b..f16b80f73e4c1403c024e072507caafebb9d8b67 100644 (file)
--- a/rln.c
+++ b/rln.c
@@ -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;
        }
 
diff --git a/rln.h b/rln.h
index 1c19aaf88753139260ebb2de95b969add959c0f9..095e81322558053bb858b7e68bb2d9bc7163e8b9 100644 (file)
--- a/rln.h
+++ b/rln.h
@@ -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