gcc11.patch 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409
  1. diff -Naur a/p_ac3.cpp b/p_ac3.cpp
  2. --- a/p_ac3.cpp 2003-05-04 09:41:26.000000000 +0000
  3. +++ b/p_ac3.cpp 2021-04-29 17:46:25.711376156 +0000
  4. @@ -30,7 +30,7 @@
  5. ac3_packetizer_c::ac3_packetizer_c(unsigned long nsamples_per_sec,
  6. int nchannels, int nbitrate,
  7. audio_sync_t *nasync, range_t *nrange,
  8. - char **ncomments) throw (error_c) : q_c() {
  9. + char **ncomments) : q_c() {
  10. serialno = create_unique_serial();
  11. ogg_stream_init(&os, serialno);
  12. packetno = 0;
  13. diff -Naur a/p_ac3.h b/p_ac3.h
  14. --- a/p_ac3.h 2003-01-03 20:27:52.000000000 +0000
  15. +++ b/p_ac3.h 2021-04-29 17:46:26.053379762 +0000
  16. @@ -40,7 +40,7 @@
  17. public:
  18. ac3_packetizer_c(unsigned long nsamples_per_sec, int nchannels,
  19. int nbitrate, audio_sync_t *nasync,
  20. - range_t *nrange, char **ncomments) throw (error_c);
  21. + range_t *nrange, char **ncomments);
  22. virtual ~ac3_packetizer_c();
  23. virtual int process(char *buf, int size, int last_frame);
  24. diff -Naur a/p_index.cpp b/p_index.cpp
  25. --- a/p_index.cpp 2003-05-04 09:41:26.000000000 +0000
  26. +++ b/p_index.cpp 2021-04-29 17:46:25.792377010 +0000
  27. @@ -28,7 +28,7 @@
  28. #include "p_index.h"
  29. #include "vorbis_header_utils.h"
  30. -index_packetizer_c::index_packetizer_c(int nserial) throw (error_c) : q_c() {
  31. +index_packetizer_c::index_packetizer_c(int nserial) : q_c() {
  32. serialno = create_unique_serial();
  33. ogg_stream_init(&os, serialno);
  34. granulepos = 0;
  35. diff -Naur a/p_index.h b/p_index.h
  36. --- a/p_index.h 2003-05-04 09:41:26.000000000 +0000
  37. +++ b/p_index.h 2021-04-29 17:46:25.976378950 +0000
  38. @@ -33,7 +33,7 @@
  39. ogg_int64_t granulepos, packetno;
  40. int serial;
  41. public:
  42. - index_packetizer_c(int nserial) throw (error_c);
  43. + index_packetizer_c(int nserial);
  44. virtual ~index_packetizer_c();
  45. virtual int process(idx_entry *entries, int num);
  46. diff -Naur a/p_mp3.cpp b/p_mp3.cpp
  47. --- a/p_mp3.cpp 2003-05-20 07:08:37.000000000 +0000
  48. +++ b/p_mp3.cpp 2021-04-29 17:46:25.863377759 +0000
  49. @@ -30,7 +30,7 @@
  50. mp3_packetizer_c::mp3_packetizer_c(unsigned long nsamples_per_sec,
  51. int nchannels, int nmp3rate,
  52. audio_sync_t *nasync, range_t *nrange,
  53. - char **ncomments) throw (error_c) : q_c() {
  54. + char **ncomments) : q_c() {
  55. serialno = create_unique_serial();
  56. ogg_stream_init(&os, serialno);
  57. packetno = 0;
  58. diff -Naur a/p_mp3.h b/p_mp3.h
  59. --- a/p_mp3.h 2003-01-03 20:27:52.000000000 +0000
  60. +++ b/p_mp3.h 2021-04-29 17:46:26.025379467 +0000
  61. @@ -40,7 +40,7 @@
  62. public:
  63. mp3_packetizer_c(unsigned long nsamples_per_sec, int nchannels,
  64. int nmp3rate, audio_sync_t *nasync,
  65. - range_t *nrange, char **ncomments) throw (error_c);
  66. + range_t *nrange, char **ncomments);
  67. virtual ~mp3_packetizer_c();
  68. virtual int process(char *buf, int size, int last_frame);
  69. diff -Naur a/p_pcm.cpp b/p_pcm.cpp
  70. --- a/p_pcm.cpp 2003-05-04 09:41:26.000000000 +0000
  71. +++ b/p_pcm.cpp 2021-04-29 17:46:25.726376314 +0000
  72. @@ -29,7 +29,7 @@
  73. pcm_packetizer_c::pcm_packetizer_c(unsigned long nsamples_per_sec,
  74. int nchannels, int nbits_per_sample,
  75. audio_sync_t *nasync, range_t *nrange,
  76. - char **ncomments) throw (error_c) : q_c() {
  77. + char **ncomments) : q_c() {
  78. serialno = create_unique_serial();
  79. ogg_stream_init(&os, serialno);
  80. packetno = 0;
  81. diff -Naur a/p_pcm.h b/p_pcm.h
  82. --- a/p_pcm.h 2003-01-03 20:27:52.000000000 +0000
  83. +++ b/p_pcm.h 2021-04-29 17:46:25.838377495 +0000
  84. @@ -37,7 +37,7 @@
  85. public:
  86. pcm_packetizer_c(unsigned long nsamples_per_sec, int nchannels,
  87. int nbits_per_sample, audio_sync_t *nasync,
  88. - range_t *nrange, char **ncomments) throw (error_c);
  89. + range_t *nrange, char **ncomments);
  90. virtual ~pcm_packetizer_c();
  91. virtual int process(char *buf, int size, int last_frame);
  92. diff -Naur a/p_textsubs.cpp b/p_textsubs.cpp
  93. --- a/p_textsubs.cpp 2003-10-23 20:01:53.000000000 +0000
  94. +++ b/p_textsubs.cpp 2021-04-29 17:46:25.802377115 +0000
  95. @@ -29,7 +29,7 @@
  96. textsubs_packetizer_c::textsubs_packetizer_c(audio_sync_t *nasync,
  97. range_t *nrange, char **ncomments)
  98. - throw (error_c) : q_c() {
  99. + : q_c() {
  100. serialno = create_unique_serial();
  101. ogg_stream_init(&os, serialno);
  102. packetno = 0;
  103. diff -Naur a/p_textsubs.h b/p_textsubs.h
  104. --- a/p_textsubs.h 2003-01-03 20:27:52.000000000 +0000
  105. +++ b/p_textsubs.h 2021-04-29 17:46:25.985379045 +0000
  106. @@ -30,7 +30,7 @@
  107. public:
  108. textsubs_packetizer_c(audio_sync_t *nasync, range_t *nrange,
  109. - char **ncomments) throw (error_c);
  110. + char **ncomments);
  111. virtual ~textsubs_packetizer_c();
  112. virtual int process(ogg_int64_t start, ogg_int64_t end, char *_subs,
  113. diff -Naur a/p_video.cpp b/p_video.cpp
  114. --- a/p_video.cpp 2003-05-04 09:41:26.000000000 +0000
  115. +++ b/p_video.cpp 2021-04-29 17:46:25.948378655 +0000
  116. @@ -31,7 +31,7 @@
  117. int nheight, int nbpp,
  118. int nmax_frame_size, audio_sync_t *as,
  119. range_t *nrange, char **ncomments)
  120. - throw (error_c) : q_c() {
  121. + : q_c() {
  122. serialno = create_unique_serial();
  123. ogg_stream_init(&os, serialno);
  124. packetno = 0;
  125. diff -Naur a/p_video.h b/p_video.h
  126. --- a/p_video.h 2003-01-03 20:27:52.000000000 +0000
  127. +++ b/p_video.h 2021-04-29 17:46:25.813377231 +0000
  128. @@ -35,7 +35,7 @@
  129. range_t range;
  130. public:
  131. video_packetizer_c(char *, double, int, int, int, int, audio_sync_t *,
  132. - range_t *nrange, char **ncomments) throw (error_c);
  133. + range_t *nrange, char **ncomments);
  134. virtual ~video_packetizer_c();
  135. virtual int process(char *buf, int size, int num_frames, int key,
  136. diff -Naur a/p_vobsub.cpp b/p_vobsub.cpp
  137. --- a/p_vobsub.cpp 2003-05-04 09:41:26.000000000 +0000
  138. +++ b/p_vobsub.cpp 2021-04-29 17:46:26.065379889 +0000
  139. @@ -34,7 +34,7 @@
  140. char *nid, int nindex,
  141. audio_sync_t *nasync,
  142. range_t *nrange, char **ncomments)
  143. - throw (error_c) : q_c() {
  144. + : q_c() {
  145. char buffer[50];
  146. serialno = create_unique_serial();
  147. ogg_stream_init(&os, serialno);
  148. diff -Naur a/p_vobsub.h b/p_vobsub.h
  149. --- a/p_vobsub.h 2003-03-01 17:53:41.000000000 +0000
  150. +++ b/p_vobsub.h 2021-04-29 17:46:25.855377674 +0000
  151. @@ -43,7 +43,7 @@
  152. vobsub_packetizer_c(int nwidth, int nheight, char *npalette,
  153. int nlangidx, char *nid, int nindex,
  154. audio_sync_t *nasync, range_t *nrange,
  155. - char **ncomments) throw (error_c);
  156. + char **ncomments);
  157. virtual ~vobsub_packetizer_c();
  158. virtual int process(ogg_int64_t start, ogg_int64_t end, char *subs,
  159. diff -Naur a/p_vorbis.cpp b/p_vorbis.cpp
  160. --- a/p_vorbis.cpp 2003-10-23 19:46:32.000000000 +0000
  161. +++ b/p_vorbis.cpp 2021-04-29 17:46:25.934378507 +0000
  162. @@ -30,7 +30,7 @@
  163. #include "vorbis_header_utils.h"
  164. vorbis_packetizer_c::vorbis_packetizer_c(audio_sync_t *nasync, range_t *nrange,
  165. - char **ncomments) throw (error_c)
  166. + char **ncomments)
  167. : q_c() {
  168. packetno = 0;
  169. old_granulepos = 0;
  170. diff -Naur a/p_vorbis.h b/p_vorbis.h
  171. --- a/p_vorbis.h 2003-01-03 20:27:52.000000000 +0000
  172. +++ b/p_vorbis.h 2021-04-29 17:46:25.776376841 +0000
  173. @@ -37,7 +37,7 @@
  174. public:
  175. vorbis_packetizer_c(audio_sync_t *nasync, range_t *nrange, char **ncomments)
  176. - throw (error_c);
  177. + ;
  178. virtual ~vorbis_packetizer_c();
  179. virtual int process(ogg_packet *op, ogg_int64_t gran);
  180. diff -Naur a/queue.cpp b/queue.cpp
  181. --- a/queue.cpp 2004-04-02 18:19:35.000000000 +0000
  182. +++ b/queue.cpp 2021-04-29 17:46:26.011379319 +0000
  183. @@ -21,7 +21,7 @@
  184. #include "ogmmerge.h"
  185. #include "queue.h"
  186. -q_c::q_c() throw (error_c) : generic_packetizer_c() {
  187. +q_c::q_c() : generic_packetizer_c() {
  188. first = NULL;
  189. current = NULL;
  190. next_is_key = -1;
  191. diff -Naur a/queue.h b/queue.h
  192. --- a/queue.h 2003-02-05 08:37:07.000000000 +0000
  193. +++ b/queue.h 2021-04-29 17:46:26.079380037 +0000
  194. @@ -36,7 +36,7 @@
  195. ogg_stream_state os;
  196. public:
  197. - q_c() throw (error_c);
  198. + q_c();
  199. virtual ~q_c();
  200. virtual int add_ogg_page(ogg_page *, int header_page,
  201. diff -Naur a/r_ac3.cpp b/r_ac3.cpp
  202. --- a/r_ac3.cpp 2003-11-12 08:48:17.000000000 +0000
  203. +++ b/r_ac3.cpp 2021-04-29 17:46:26.095380205 +0000
  204. @@ -55,7 +55,7 @@
  205. }
  206. ac3_reader_c::ac3_reader_c(char *fname, audio_sync_t *nasync,
  207. - range_t *nrange, char **ncomments) throw (error_c) {
  208. + range_t *nrange, char **ncomments) {
  209. int pos;
  210. ac3_header_t ac3header;
  211. diff -Naur a/r_ac3.h b/r_ac3.h
  212. --- a/r_ac3.h 2003-05-04 09:41:26.000000000 +0000
  213. +++ b/r_ac3.h 2021-04-29 17:46:25.700376040 +0000
  214. @@ -36,7 +36,7 @@
  215. public:
  216. ac3_reader_c(char *fname, audio_sync_t *nasync, range_t *nrange,
  217. - char **ncomments) throw (error_c);
  218. + char **ncomments);
  219. virtual ~ac3_reader_c();
  220. virtual int read();
  221. diff -Naur a/r_avi.cpp b/r_avi.cpp
  222. --- a/r_avi.cpp 2004-04-13 17:31:31.000000000 +0000
  223. +++ b/r_avi.cpp 2021-04-29 17:46:25.846377579 +0000
  224. @@ -55,7 +55,7 @@
  225. avi_reader_c::avi_reader_c(char *fname, unsigned char *astreams,
  226. unsigned char *vstreams, audio_sync_t *nasync,
  227. range_t *nrange, char **ncomments, char *nfourcc,
  228. - char* nav_seek) throw (error_c) {
  229. + char* nav_seek) {
  230. int fsize, i;
  231. off_t size;
  232. FILE *f;
  233. diff -Naur a/r_avi.h b/r_avi.h
  234. --- a/r_avi.h 2004-04-01 16:02:52.000000000 +0000
  235. +++ b/r_avi.h 2021-04-29 17:46:26.000379203 +0000
  236. @@ -67,7 +67,7 @@
  237. avi_reader_c(char *fname, unsigned char *astreams,
  238. unsigned char *vstreams, audio_sync_t *nasync,
  239. range_t *nrange, char **ncomments, char *nfourcc,
  240. - char* nav_seek) throw (error_c);
  241. + char* nav_seek);
  242. virtual ~avi_reader_c();
  243. virtual int read();
  244. diff -Naur a/r_microdvd.cpp b/r_microdvd.cpp
  245. --- a/r_microdvd.cpp 2003-05-04 09:41:26.000000000 +0000
  246. +++ b/r_microdvd.cpp 2021-04-29 17:46:25.958378760 +0000
  247. @@ -56,7 +56,7 @@
  248. microdvd_reader_c::microdvd_reader_c(char *fname, audio_sync_t *nasync,
  249. range_t *nrange, char **ncomments)
  250. - throw (error_c) {
  251. + {
  252. if ((file = fopen(fname, "r")) == NULL)
  253. throw error_c("microdvd_reader: Could not open source file.");
  254. if (!microdvd_reader_c::probe_file(file, 0))
  255. diff -Naur a/r_microdvd.h b/r_microdvd.h
  256. --- a/r_microdvd.h 2003-05-04 09:41:26.000000000 +0000
  257. +++ b/r_microdvd.h 2021-04-29 17:46:25.741376472 +0000
  258. @@ -35,7 +35,7 @@
  259. public:
  260. microdvd_reader_c(char *fname, audio_sync_t *nasync, range_t *nrange,
  261. - char **ncomments) throw (error_c);
  262. + char **ncomments);
  263. virtual ~microdvd_reader_c();
  264. virtual int read();
  265. diff -Naur a/r_mp3.cpp b/r_mp3.cpp
  266. --- a/r_mp3.cpp 2004-07-06 15:42:16.000000000 +0000
  267. +++ b/r_mp3.cpp 2021-04-29 17:46:25.907378223 +0000
  268. @@ -60,7 +60,7 @@
  269. }
  270. mp3_reader_c::mp3_reader_c(char *fname, audio_sync_t *nasync,
  271. - range_t *nrange, char **ncomments) throw (error_c) {
  272. + range_t *nrange, char **ncomments) {
  273. int pos;
  274. unsigned long header;
  275. mp3_header_t mp3header;
  276. diff -Naur a/r_mp3.h b/r_mp3.h
  277. --- a/r_mp3.h 2003-05-04 09:41:26.000000000 +0000
  278. +++ b/r_mp3.h 2021-04-29 17:46:26.036379583 +0000
  279. @@ -40,7 +40,7 @@
  280. public:
  281. mp3_reader_c(char *fname, audio_sync_t *nasync, range_t *nrange,
  282. - char **ncomments) throw (error_c);
  283. + char **ncomments);
  284. virtual ~mp3_reader_c();
  285. virtual int read();
  286. diff -Naur a/r_ogm.cpp b/r_ogm.cpp
  287. --- a/r_ogm.cpp 2004-02-10 11:17:17.000000000 +0000
  288. +++ b/r_ogm.cpp 2021-04-29 17:46:25.967378855 +0000
  289. @@ -60,7 +60,7 @@
  290. ogm_reader_c::ogm_reader_c(char *fname, unsigned char *astreams,
  291. unsigned char *vstreams, unsigned char *tstreams,
  292. audio_sync_t *nasync, range_t *nrange,
  293. - char **ncomments, char *nfourcc) throw (error_c) {
  294. + char **ncomments, char *nfourcc) {
  295. off_t size;
  296. if ((file = fopen(fname, "r")) == NULL)
  297. diff -Naur a/r_ogm.h b/r_ogm.h
  298. --- a/r_ogm.h 2004-02-10 11:17:17.000000000 +0000
  299. +++ b/r_ogm.h 2021-04-29 17:46:25.880377938 +0000
  300. @@ -62,7 +62,7 @@
  301. ogm_reader_c(char *fname, unsigned char *astreams,
  302. unsigned char *vstreams, unsigned char *tstreams,
  303. audio_sync_t *nasync, range_t *nrange, char **ncomments,
  304. - char *nfourcc) throw (error_c);
  305. + char *nfourcc);
  306. virtual ~ogm_reader_c();
  307. virtual int read();
  308. diff -Naur a/r_srt.cpp b/r_srt.cpp
  309. --- a/r_srt.cpp 2003-05-04 09:41:26.000000000 +0000
  310. +++ b/r_srt.cpp 2021-04-29 17:46:25.925378412 +0000
  311. @@ -62,7 +62,7 @@
  312. }
  313. srt_reader_c::srt_reader_c(char *fname, audio_sync_t *nasync,
  314. - range_t *nrange, char **ncomments) throw (error_c) {
  315. + range_t *nrange, char **ncomments) {
  316. if ((file = fopen(fname, "r")) == NULL)
  317. throw error_c("srt_reader: Could not open source file.");
  318. if (!srt_reader_c::probe_file(file, 0))
  319. diff -Naur a/r_srt.h b/r_srt.h
  320. --- a/r_srt.h 2003-05-04 09:41:26.000000000 +0000
  321. +++ b/r_srt.h 2021-04-29 17:46:25.826377368 +0000
  322. @@ -35,7 +35,7 @@
  323. public:
  324. srt_reader_c(char *fname, audio_sync_t *nasync, range_t *nrange,
  325. - char **ncomments) throw (error_c);
  326. + char **ncomments);
  327. virtual ~srt_reader_c();
  328. virtual int read();
  329. diff -Naur a/r_vobsub.cpp b/r_vobsub.cpp
  330. --- a/r_vobsub.cpp 2004-04-13 17:31:31.000000000 +0000
  331. +++ b/r_vobsub.cpp 2021-04-29 17:46:25.915378307 +0000
  332. @@ -72,7 +72,7 @@
  333. vobsub_reader_c::vobsub_reader_c(char *fname, audio_sync_t *nasync,
  334. range_t *nrange, char **ncomments)
  335. - throw (error_c) {
  336. + {
  337. char *name;
  338. if ((file = fopen(fname, "r")) == NULL)
  339. diff -Naur a/r_vobsub.h b/r_vobsub.h
  340. --- a/r_vobsub.h 2003-05-04 09:41:26.000000000 +0000
  341. +++ b/r_vobsub.h 2021-04-29 17:46:25.764376715 +0000
  342. @@ -42,7 +42,7 @@
  343. public:
  344. vobsub_reader_c(char *fname, audio_sync_t *nasync, range_t *nrange,
  345. - char **ncomments) throw (error_c);
  346. + char **ncomments);
  347. virtual ~vobsub_reader_c();
  348. virtual int read();
  349. diff -Naur a/r_wav.cpp b/r_wav.cpp
  350. --- a/r_wav.cpp 2003-05-04 09:41:26.000000000 +0000
  351. +++ b/r_wav.cpp 2021-04-29 17:46:25.753376599 +0000
  352. @@ -50,7 +50,7 @@
  353. }
  354. wav_reader_c::wav_reader_c(char *fname, audio_sync_t *nasync,
  355. - range_t *nrange, char **ncomments) throw (error_c) {
  356. + range_t *nrange, char **ncomments) {
  357. uint64_t size;
  358. uint32_t samplerate;
  359. uint16_t channels, bitdepth;
  360. diff -Naur a/r_wav.h b/r_wav.h
  361. --- a/r_wav.h 2003-05-04 09:41:26.000000000 +0000
  362. +++ b/r_wav.h 2021-04-29 17:46:25.896378107 +0000
  363. @@ -41,7 +41,7 @@
  364. public:
  365. wav_reader_c(char *fname, audio_sync_t *nasync, range_t *nrange,
  366. - char **ncomments) throw (error_c);
  367. + char **ncomments);
  368. virtual ~wav_reader_c();
  369. virtual int read();