From af5bc5552497b50ce3fe30d6794abde03ab3ea04 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Fri, 7 Jun 2002 06:02:14 +0000 Subject: [PATCH] Fix for BR 561137 (gcc3 compilation issue.) --- nasm.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/nasm.c b/nasm.c index 47cad156..eb94a01d 100644 --- a/nasm.c +++ b/nasm.c @@ -488,13 +488,17 @@ static int process_arg (char *p, char *q) break; case 'r': case 'v': - printf("NASM version %s compiled " + { + const char *nasm_version_string = + "NASM version " NASM_VER " compiled on " __DATE__ #ifdef DEBUG - "with -DDEBUG " + " with -DDEBUG" #endif - "on " __DATE__ "\n", NASM_VER); - exit (0); /* never need usage message here */ - break; + ; + puts(nasm_version_string); + exit (0); /* never need usage message here */ + } + break; case 'e': /* preprocess only */ operating_mode = op_preprocess; break; -- 2.11.4.GIT