[libgepub: 2/5] build: Removed default compiler options



commit f07ddbee50972122dcba1a5d810bc7abd26f83e0
Author: Iñigo Martínez <inigomartinez gmail com>
Date:   Thu Aug 3 21:56:23 2017 +0200

    build: Removed default compiler options
    
    C99 has been removed as the C standard to be used, so compiler's
    default standard will be used instead. The default flags have also
    been removed, so meson's warning level flags will be used.

 meson.build |   39 ---------------------------------------
 1 files changed, 0 insertions(+), 39 deletions(-)
---
diff --git a/meson.build b/meson.build
index df9c3c4..9738dd8 100644
--- a/meson.build
+++ b/meson.build
@@ -4,7 +4,6 @@ project(
   license: 'LGPL2+',
   default_options: [
     'buildtype=debugoptimized',
-    'c_std=gnu99',
     'warning_level=1'
   ],
   meson_version: '>= 0.41.0'
@@ -59,44 +58,6 @@ config_h.set('HAVE_UNISTD_H', cc.has_header('unistd.h'))
 # compiler flags
 common_flags = ['-DHAVE_CONFIG_H']
 
-buildtype = get_option('buildtype')
-if buildtype == 'debug' or buildtype == 'debugoptimized'
-  test_cflags = [
-    '-fno-strict-aliasing',
-    '-Wcast-align',
-    '-Wdeclaration-after-statement',
-    '-Wformat-nonliteral',
-    '-Wformat=2',
-    '-Winit-self',
-    '-Winline',
-    '-Wmissing-declarations',
-    '-Wmissing-format-attribute',
-    '-Wmissing-include-dirs',
-    '-Wmissing-noreturn',
-    '-Wmissing-prototypes',
-    '-Wnested-externs',
-    '-Wno-error=missing-field-initializers',
-    '-Wno-error=unused-parameter',
-    '-Wno-missing-field-initializers',
-    '-Wno-unused-parameter',
-    '-Wold-style-definition',
-    '-Wpacked',
-    '-Wredundant-decls',
-    '-Wshadow',
-    '-Wstrict-prototypes',
-    '-Wswitch-enum',
-    '-Wundef',
-    '-Wunused-but-set-variable',
-    '-Wwrite-strings'
-  ]
-
-  foreach cflag: test_cflags
-    if cc.has_argument(cflag)
-      common_flags += [cflag]
-    endif
-  endforeach
-endif
-
 add_project_arguments(common_flags, language: 'c')
 
 gepub_deps = [


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]