Ticket #49046: rcs-5.9.4._Noreturn.patch

File rcs-5.9.4._Noreturn.patch, 2.4 KB (added by inyeollee, 9 years ago)

Patch against rcs-5.9.4 to fix _Noreturn issue.

  • src/b-complain.h

    diff -Naur rcs-5.9.4.old/src/b-complain.h rcs-5.9.4.new/src/b-complain.h
    old new  
    3232  printf_string (2, 3);
    3333extern void generic_error (char const *who, char const *fmt, ...)
    3434  printf_string (2, 3);
    35 extern void generic_fatal (char const *who, char const *fmt, ...)
    36   printf_string (2, 3) exiting;
    37 extern void fatal_syntax (size_t lno, char const *fmt, ...)
    38   printf_string (2, 3) exiting;
    39 extern void fatal_sys (char const *who)
    40   exiting;
     35exiting extern void generic_fatal (char const *who, char const *fmt, ...)
     36  printf_string (2, 3);
     37exiting extern void fatal_syntax (size_t lno, char const *fmt, ...)
     38  printf_string (2, 3);
     39exiting extern void fatal_sys (char const *who);
    4140
    4241/* Idioms.  Here, prefix P stands for "program" (general operation);
    4342   M for "manifestation"; R for "repository".  */
  • src/b-fb.h

    diff -Naur rcs-5.9.4.old/src/b-fb.h rcs-5.9.4.new/src/b-fb.h
    old new  
    2121*/
    2222
    2323extern int change_mode (int fd, mode_t mode);
    24 extern void Ierror (void) exiting;
     24exiting extern void Ierror (void);
    2525extern void testIerror (FILE *f);
    26 extern void Oerror (void) exiting;
     26exiting extern void Oerror (void);
    2727extern void testOerror (FILE *o);
    2828extern FILE *fopen_safer (char const *filename, char const *type);
    2929extern void Ozclose (FILE **p);
  • src/base.h

    diff -Naur rcs-5.9.4.old/src/base.h rcs-5.9.4.new/src/base.h
    old new  
    754754int donerewrite (int changed, time_t newRCStime);
    755755void ORCSclose (void);
    756756void ORCSerror (void);
    757 void unexpected_EOF (void)
    758   exiting;
     757exiting void unexpected_EOF (void);
    759758void initdiffcmd (struct diffcmd *dc);
    760759int getdiffcmd (struct fro *finfile, bool delimiter,
    761760                FILE *foutfile, struct diffcmd *dc);
     
    830829                      char datebuf[datesize + zonelenmax]);
    831830
    832831/* rcsutil */
    833 void thank_you_and_goodnight (int const how)
    834   exiting;
     832exiting void thank_you_and_goodnight (int const how);
    835833/* These are for ‘thank_you_and_goodnight’.  */
    836834#define TYAG_ORCSERROR     (1 << 3)
    837835#define TYAG_DIRTMPUNLINK  (1 << 2)