~ubuntu-branches/ubuntu/trusty/pitivi/trusty

« back to all changes in this revision

Viewing changes to common/m4/gst-error.m4

* New upstream pre-release:
  + debian/control:
    - Update dependencies.
* debian/control:
  + Update Standards-Version to 3.8.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 
8
8
dnl AG_GST_SET_ERROR_CFLAGS([ADD-WERROR])
9
9
dnl AG_GST_SET_ERROR_CXXFLAGS([ADD-WERROR])
10
 
dnl AG_GST_SET_LEVEL_DEFAULT([IS-CVS-VERSION])
 
10
dnl AG_GST_SET_LEVEL_DEFAULT([IS-GIT-VERSION])
11
11
 
12
12
 
13
13
dnl Sets ERROR_CFLAGS to something the compiler will accept.
23
23
  AC_REQUIRE([AC_PROG_CC])
24
24
  AC_REQUIRE([AS_COMPILER_FLAG])
25
25
 
26
 
  
 
26
 
27
27
  dnl if we support -Wall, set it unconditionally
28
28
  AS_COMPILER_FLAG(-Wall,
29
29
                   ERROR_CFLAGS="-Wall",
30
30
                   ERROR_CFLAGS="")
31
 
 
 
31
 
32
32
  dnl Warn if declarations after statements are used (C99 extension)
33
33
  AS_COMPILER_FLAG(-Wdeclaration-after-statement,
34
34
        ERROR_CFLAGS="$ERROR_CFLAGS -Wdeclaration-after-statement")
54
54
          dnl try -errwarn=%all,no%E_EMPTY_DECLARATION,
55
55
          dnl no%E_STATEMENT_NOT_REACHED,no%E_ARGUEMENT_MISMATCH,
56
56
          dnl no%E_MACRO_REDEFINED (Sun Forte case)
57
 
          dnl For Forte we need disable "empty declaration" warning produced by un-needed semicolon 
 
57
          dnl For Forte we need disable "empty declaration" warning produced by un-needed semicolon
58
58
          dnl "statement not reached" disabled because there is g_assert_not_reached () in some places
59
59
          dnl "macro redefined" because of gst/gettext.h
60
60
          dnl FIXME: is it really supposed to be 'ARGUEMENT' and not 'ARGUMENT'?
97
97
  AC_REQUIRE([AC_PROG_CXX])
98
98
  AC_REQUIRE([AS_CXX_COMPILER_FLAG])
99
99
 
100
 
  
 
100
 
101
101
  dnl if we support -Wall, set it unconditionally
102
102
  AS_CXX_COMPILER_FLAG(-Wall, [
103
103
      ERROR_CXXFLAGS="-Wall"
104
104
  ], [
105
105
      ERROR_CXXFLAGS=""
106
106
  ])
107
 
  
 
107
 
108
108
  dnl if asked for, add -Werror if supported
109
109
  if test "x$1" != "xno"
110
110
  then
115
115
 
116
116
        dnl add exceptions
117
117
        AS_CXX_COMPILER_FLAG([-Wno-non-virtual-dtor], ERROR_CXXFLAGS="$ERROR_CXXFLAGS -Wno-non-virtual-dtor")
118
 
        
 
118
 
119
119
        dnl Add -fno-strict-aliasing for GLib versions before 2.19.8
120
120
        dnl as before G_LOCK and friends caused strict aliasing compiler
121
121
        dnl warnings.
131
131
        dnl try -errwarn=%all,no%E_EMPTY_DECLARATION,
132
132
        dnl no%E_STATEMENT_NOT_REACHED,no%E_ARGUEMENT_MISMATCH,
133
133
        dnl no%E_MACRO_REDEFINED (Sun Forte case)
134
 
        dnl For Forte we need disable "empty declaration" warning produced by un-needed semicolon 
 
134
        dnl For Forte we need disable "empty declaration" warning produced by un-needed semicolon
135
135
        dnl "statement not reached" disabled because there is g_assert_not_reached () in some places
136
136
        dnl "macro redefined" because of gst/gettext.h
137
137
        dnl FIXME: is it really supposed to be 'ARGUEMENT' and not 'ARGUMENT'?