2 eval 'exec perl -wS $0 ${1+"$@"}'
5 # This file is part of the LibreOffice project.
7 # This Source Code Form is subject to the terms of the Mozilla Public
8 # License, v. 2.0. If a copy of the MPL was not distributed with this
9 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
11 # This file incorporates work covered by the following license notice:
13 # Licensed to the Apache Software Foundation (ASF) under one or more
14 # contributor license agreements. See the NOTICE file distributed
15 # with this work for additional information regarding copyright
16 # ownership. The ASF licenses this file to you under the Apache
17 # License, Version 2.0 (the "License"); you may not use this file
18 # except in compliance with the License. You may obtain a copy of
19 # the License at http://www.apache.org/licenses/LICENSE-2.0 .
21 # This is a script to get rid of bogus error messages that are spit out
22 # by the compiler - sub 30/11/1999
24 # Lines that contain `xxxx' where xxxx belongs to the list knownMessages
25 # and is surrounded by a backtick (`) and a forward tick (')
26 # will not be seen in the compiler output
34 "__cp_push_exception",
35 "__uncatch_exception",
43 "__builtin_vec_delete",
51 "set_new_handler_FPFv_v",
52 "__throw_type_match_rtti",
54 "exception_type_info",
55 "exception type_info function",
56 "exception type_info node",
57 "exception virtual table",
61 # Create a hash %msgHash from list @knownMessages
62 foreach $msg (@knownMessages) {
67 if (/\`([\s\w]+)\'/) {
69 if (defined($entry)) {
70 if (!exists $msgHash{$entry}) {