Merge lp:~paul-lucas/zorba/pjl-misc into lp:zorba

Proposed by Paul J. Lucas
Status: Merged
Approved by: Matthias Brantner
Approved revision: 10980
Merged at revision: 11019
Proposed branch: lp:~paul-lucas/zorba/pjl-misc
Merge into: lp:zorba
Diff against target: 101 lines (+36/-11)
3 files modified
include/zorba/config.h.cmake (+10/-0)
src/runtime/full_text/ft_module_impl.cpp (+9/-11)
src/util/icu_streambuf.cpp (+17/-0)
To merge this branch: bzr merge lp:~paul-lucas/zorba/pjl-misc
Reviewer Review Type Date Requested Status
Matthias Brantner Approve
Paul J. Lucas Approve
Review via email: mp+121978@code.launchpad.net

Commit message

Suppressed warnings; moved gcc diagnostic push macros to config.h.

Description of the change

Suppressed warnings; moved gcc diagnostic push macros to config.h.

To post a comment you must log in.
lp:~paul-lucas/zorba/pjl-misc updated
10977. By Paul J. Lucas

Forgot a file.

Revision history for this message
Paul J. Lucas (paul-lucas) :
review: Approve
Revision history for this message
Matthias Brantner (matthias-brantner) wrote :

/home/mbrantner/zorba/sandbox/src/runtime/full_text/ft_module_impl.cpp:511:33: warning: unknown option after ‘#pragma GCC diagnostic’ kind [-Wpragmas]

review: Needs Fixing
Revision history for this message
Paul J. Lucas (paul-lucas) wrote :

I don't know what compiler you're using, but that line isn't any different than before (that's why it's neither green nor red in the diff).

lp:~paul-lucas/zorba/pjl-misc updated
10978. By Paul J. Lucas

Tweaked #pragmas.

10979. By Paul J. Lucas

More #pragma tweaking.

Revision history for this message
Paul J. Lucas (paul-lucas) wrote :

Fixed.

lp:~paul-lucas/zorba/pjl-misc updated
10980. By Paul J. Lucas

Merge from trunk.

Revision history for this message
Matthias Brantner (matthias-brantner) :
review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job pjl-misc-2012-09-04T04-02-04.988Z is finished. The final status was:

All tests succeeded!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'include/zorba/config.h.cmake'
--- include/zorba/config.h.cmake 2012-08-30 13:45:43 +0000
+++ include/zorba/config.h.cmake 2012-08-30 23:52:21 +0000
@@ -147,6 +147,16 @@
147# define ZORBA_TR1_NS std147# define ZORBA_TR1_NS std
148#endif148#endif
149149
150////////// GCC diagnostics ////////////////////////////////////////////////////
151
152#if defined( __GNUC__ ) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 460)
153# define GCC_GREATER_EQUAL_460 1
154#endif
155
156#if defined( GCC_GREATER_EQUAL_460 ) || defined( __llvm__ )
157# define GCC_PRAGMA_DIAGNOSTIC_PUSH 1
158#endif
159
150////////// Zorba //////////////////////////////////////////////////////////////160////////// Zorba //////////////////////////////////////////////////////////////
151161
152// Version162// Version
153163
=== modified file 'src/runtime/full_text/ft_module_impl.cpp'
--- src/runtime/full_text/ft_module_impl.cpp 2012-08-30 13:45:43 +0000
+++ src/runtime/full_text/ft_module_impl.cpp 2012-08-30 23:52:21 +0000
@@ -504,18 +504,13 @@
504504
505///////////////////////////////////////////////////////////////////////////////505///////////////////////////////////////////////////////////////////////////////
506506
507#if defined( __GNUC__ ) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 460)507#ifdef __GNUC__
508# define GCC_GREATER_EQUAL_460 1508# ifdef GCC_PRAGMA_DIAGNOSTIC_PUSH
509#endif509# pragma GCC diagnostic push
510510# endif /* GCC_PRAGMA_DIAGNOSTIC_PUSH */
511#if defined( GCC_GREATER_EQUAL_460 ) || defined( __llvm__ )511# pragma GCC diagnostic ignored "-Wpragmas"
512# define GCC_PRAGMA_DIAGNOSTIC_PUSH 1
513#endif
514
515#ifdef GCC_PRAGMA_DIAGNOSTIC_PUSH
516# pragma GCC diagnostic push
517# pragma GCC diagnostic ignored "-Wbind-to-temporary-copy"512# pragma GCC diagnostic ignored "-Wbind-to-temporary-copy"
518#endif /* GCC_PRAGMA_DIAGNOSTIC_PUSH */513#endif /* __GNUC__ */
519514
520bool ThesaurusLookupIterator::nextImpl( store::Item_t &result,515bool ThesaurusLookupIterator::nextImpl( store::Item_t &result,
521 PlanState &plan_state ) const {516 PlanState &plan_state ) const {
@@ -612,6 +607,9 @@
612607
613#ifdef GCC_PRAGMA_DIAGNOSTIC_PUSH608#ifdef GCC_PRAGMA_DIAGNOSTIC_PUSH
614# pragma GCC diagnostic pop609# pragma GCC diagnostic pop
610#else
611# pragma GCC diagnostic warning "-Wbind-to-temporary-copy"
612# pragma GCC diagnostic warning "-Wpragmas"
615#endif /* GCC_PRAGMA_DIAGNOSTIC_PUSH */613#endif /* GCC_PRAGMA_DIAGNOSTIC_PUSH */
616614
617///////////////////////////////////////////////////////////////////////////////615///////////////////////////////////////////////////////////////////////////////
618616
=== modified file 'src/util/icu_streambuf.cpp'
--- src/util/icu_streambuf.cpp 2012-08-30 13:45:43 +0000
+++ src/util/icu_streambuf.cpp 2012-08-30 23:52:21 +0000
@@ -25,6 +25,7 @@
25#include <cassert>25#include <cassert>
26#include <stdexcept>26#include <stdexcept>
2727
28#include <zorba/config.h>
28#include <zorba/diagnostic_list.h>29#include <zorba/diagnostic_list.h>
2930
30#include "diagnostics/assert.h"31#include "diagnostics/assert.h"
@@ -177,6 +178,16 @@
177 return c;178 return c;
178}179}
179180
181#ifdef __GNUC__
182# ifdef GCC_PRAGMA_DIAGNOSTIC_PUSH
183# pragma GCC diagnostic push
184# endif /* GCC_PRAGMA_DIAGNOSTIC_PUSH */
185//
186// Disables warnings about p.pivot_buf_ + sizeof p.pivot_buf_.
187//
188# pragma GCC diagnostic ignored "-Warray-bounds"
189#endif /* __GNUC__ */
190
180bool icu_streambuf::to_external( char_type const **from,191bool icu_streambuf::to_external( char_type const **from,
181 char_type const *from_end, char **to,192 char_type const *from_end, char **to,
182 char const *to_end, bool flush ) {193 char const *to_end, bool flush ) {
@@ -215,6 +226,12 @@
215 return true;226 return true;
216}227}
217228
229#ifdef GCC_PRAGMA_DIAGNOSTIC_PUSH
230# pragma GCC diagnostic pop
231#else
232# pragma GCC diagnostic warning "-Warray-bounds"
233#endif /* GCC_PRAGMA_DIAGNOSTIC_PUSH */
234
218icu_streambuf::int_type icu_streambuf::underflow() {235icu_streambuf::int_type icu_streambuf::underflow() {
219#if ZORBA_DEBUG_ICU_STREAMBUF236#if ZORBA_DEBUG_ICU_STREAMBUF
220 printf( "underflow()\n" );237 printf( "underflow()\n" );

Subscribers

People subscribed via source and target branches