3535#include " ../gpre/gpre_proto.h"
3636#include " ../gpre/lang_proto.h"
3737#include " ../yvalve/gds_proto.h"
38- #include " ../common/utils_proto.h"
3938
4039static void align (const int );
4140static void asgn_from (ref*, int );
@@ -51,7 +50,7 @@ static void gen_estore(const act*, int, bool);
5150static void gen_endfor (const act*, int );
5251static void gen_erase (const act*, int );
5352static void gen_for (const act*, int );
54- static char * gen_name (char * const , const ref*);
53+ static char * gen_name (char * const , const ref*) noexcept ;
5554static void gen_raw (const gpre_req*);
5655static void gen_receive (const gpre_req*, const gpre_port*);
5756static void gen_request (const gpre_req*);
@@ -68,7 +67,7 @@ static void printa(const int, const TEXT*, ...);
6867
6968static bool global_first_flag = false ;
7069
71- const int INDENT = 3 ;
70+ constexpr int INDENT = 3 ;
7271
7372static const char * const GDS_VTOV = " gds__vtov" ;
7473static const char * const JRD_VTOF = " jrd_vtof" ;
@@ -103,6 +102,7 @@ void INT_CXX_action( const act* action, int column)
103102 case ACT_s_start:
104103 begin (column);
105104 align (column);
105+ break ;
106106 default :
107107 break ;
108108 }
@@ -388,9 +388,9 @@ static void gen_endfor( const act* action, int column)
388388// Generate substitution text for ERASE.
389389//
390390
391- static void gen_erase ( const act* action, int column)
391+ static void gen_erase (const act* action, int column)
392392{
393- upd* erase = (upd*) action->act_object ;
393+ const upd* erase = (upd*) action->act_object ;
394394 gen_send (erase->upd_request , erase->upd_port , column, false );
395395}
396396
@@ -424,10 +424,10 @@ static void gen_for( const act* action, int column)
424424// port and parameter idents.
425425//
426426
427- static char * gen_name (char * const string, const ref* reference)
427+ static char * gen_name (char * const string, const ref* reference) noexcept
428428{
429- fb_utils:: snprintf (string, MAX_REF_SIZE, " jrd_%d .jrd_%d " ,
430- reference->ref_port ->por_ident , reference->ref_ident );
429+ snprintf (string, MAX_REF_SIZE, " jrd_%" ULONGFORMAT " .jrd_%u " ,
430+ reference->ref_port ->por_ident , reference->ref_ident );
431431
432432 return string;
433433}
@@ -709,8 +709,8 @@ static void make_port( const gpre_port* port, int column)
709709 default :
710710 {
711711 TEXT s[ERROR_LENGTH];
712- fb_utils:: snprintf (s, sizeof (s), " datatype %d unknown for field %s, msg %d" ,
713- field->fld_dtype , name, port->por_msg_number );
712+ snprintf (s, sizeof (s), " datatype %d unknown for field %s, msg %d" ,
713+ field->fld_dtype , name, port->por_msg_number );
714714 CPR_error (s);
715715 return ;
716716 }
0 commit comments