diff --git a/bin/syncqt b/bin/syncqt index 4d3ae59bdd..bbbbe33d50 100755 --- a/bin/syncqt +++ b/bin/syncqt @@ -1206,10 +1206,12 @@ if($check_includes) { my $qt_begin_namespace_found = 0; my $qt_end_namespace_found = 0; my $line; + my $stop_processing = 0; while($line = ) { chomp $line; my $output_line = 1; if($line =~ /^ *\# *pragma (qt_no_included_check|qt_sync_stop_processing)/) { + $stop_processing = 1; last; } elsif($line =~ /^ *\# *include/) { my $include = $line; @@ -1237,7 +1239,7 @@ if($check_includes) { $qt_end_namespace_found = 1; } } - if ($header_skip_qt_begin_header_test == 0) { + if ($header_skip_qt_begin_header_test == 0 and $stop_processing == 0) { if ($qt_begin_header_found == 0) { print "$lib: WARNING: $iheader does not include QT_BEGIN_HEADER\n"; } @@ -1247,7 +1249,7 @@ if($check_includes) { } } - if ($header_skip_qt_begin_namespace_test == 0) { + if ($header_skip_qt_begin_namespace_test == 0 and $stop_processing == 0) { if ($qt_begin_namespace_found == 0) { print "$lib: WARNING: $iheader does not include QT_BEGIN_NAMESPACE\n"; } diff --git a/configure b/configure index 205cbde2d3..ef6014144c 100755 --- a/configure +++ b/configure @@ -2311,12 +2311,10 @@ if [ -z "$PLATFORM" ]; then PLATFORM=macx-clang elif [ "$OSX_VERSION" -eq 11 ]; then # We're on Lion. Check if we have a supported Clang version - case "$(clang -v 2>&1 | grep -Po '(?<=version )\d[\d.]+')" in - 3.*) + if [ "$(clang -v 2>&1 | grep -Po '(?<=version )[\d]')" -ge 3 ]; then PLATFORM=macx-clang PLATFORM_NOTES="\n - Also available for Mac OS X: macx-g++\n" - ;; - esac + fi fi ;; AIX:*) @@ -6122,7 +6120,7 @@ QT_SOURCE_TREE = \$\$quote($relpath) QT_BUILD_TREE = \$\$quote($outpath) include(\$\$PWD/mkspecs/qmodule.pri) -CONFIG += dylib fix_output_dirs no_private_qt_headers_warning QTDIR_build +CONFIG += fix_output_dirs no_private_qt_headers_warning QTDIR_build EOF diff --git a/examples/opengl/paintedwindow/main.cpp b/examples/opengl/paintedwindow/main.cpp index 270b0b162a..b0c0060338 100644 --- a/examples/opengl/paintedwindow/main.cpp +++ b/examples/opengl/paintedwindow/main.cpp @@ -50,6 +50,6 @@ int main(int argc, char **argv) PaintedWindow window; window.show(); - app.exec(); + return app.exec(); } diff --git a/examples/webkit/webkit-guide/_copyright.txt b/examples/webkit/webkit-guide/_copyright.txt index 198140cdeb..b90716cf3a 100644 --- a/examples/webkit/webkit-guide/_copyright.txt +++ b/examples/webkit/webkit-guide/_copyright.txt @@ -1,8 +1,10 @@