diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2013-10-22 16:36:52 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2013-10-22 16:36:52 +0200 |
commit | 1d1f7e09f89bc86a9fc540b88e9cbc2316c4056f (patch) | |
tree | d5abab0c63d1914f17497c2deec8a41d3e7cd0ae | |
parent | 4ca7e7b3e8b5ddc7062cd44c7fa57f65b4e22a70 (diff) | |
download | ufo-filters-1d1f7e09f89bc86a9fc540b88e9cbc2316c4056f.tar.gz ufo-filters-1d1f7e09f89bc86a9fc540b88e9cbc2316c4056f.tar.bz2 ufo-filters-1d1f7e09f89bc86a9fc540b88e9cbc2316c4056f.tar.xz ufo-filters-1d1f7e09f89bc86a9fc540b88e9cbc2316c4056f.zip |
Support Clang
-rw-r--r-- | CMakeLists.txt | 21 | ||||
-rw-r--r-- | src/ufo-buffer-task.h | 3 | ||||
-rw-r--r-- | src/ufo-center-of-rotation-task.h | 3 | ||||
-rw-r--r-- | src/ufo-cut-sinogram-task.h | 3 | ||||
-rw-r--r-- | src/ufo-dfi-sinc-task.h | 3 | ||||
-rw-r--r-- | src/ufo-flat-field-correction-task.h | 3 | ||||
-rw-r--r-- | src/ufo-gaussian-blur-task.h | 3 | ||||
-rw-r--r-- | src/ufo-meta-balls-task.h | 3 | ||||
-rw-r--r-- | src/ufo-subtract-task.h | 3 | ||||
-rw-r--r-- | src/ufo-swap-quadrants-task.h | 3 | ||||
-rw-r--r-- | src/ufo-volume-render-task.h | 3 | ||||
-rw-r--r-- | src/ufo-zeropadding-task.h | 3 |
12 files changed, 37 insertions, 17 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d830eb1..f457b6a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,12 +41,21 @@ include_directories( add_definitions("-std=c99 -pedantic -Wall -Wextra -fPIC") add_definitions(-DG_LOG_DOMAIN="Ufo") -if (CMAKE_COMPILER_IS_GNUCC) - add_definitions("-Wmissing-prototypes -Wmissing-declarations -Wshadow - -Wpointer-arith -Wcast-align -Wwrite-strings -Wredundant-decls -Wcast-qual - -Wnested-externs -Winline -Wno-long-long -Wconversion -Wstrict-prototypes") - - add_definitions("-Wno-unused-parameter -Wno-missing-field-initializers") +if (CMAKE_COMPILER_IS_GNUCC OR ("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang")) + add_definitions("-Wcast-align + -Wcast-qual + -Winline + -Wmissing-declarations + -Wmissing-prototypes + -Wnested-externs + -Wno-long-long + -Wno-missing-field-initializers + -Wno-unused-parameter + -Wpointer-arith + -Wredundant-decls + -Wshadow + -Wstrict-prototypes + -Wwrite-strings") endif() #}}} diff --git a/src/ufo-buffer-task.h b/src/ufo-buffer-task.h index 36ac0bf..270a00f 100644 --- a/src/ufo-buffer-task.h +++ b/src/ufo-buffer-task.h @@ -63,4 +63,5 @@ GType ufo_buffer_task_get_type (void); G_END_DECLS -#endif
\ No newline at end of file +#endif + diff --git a/src/ufo-center-of-rotation-task.h b/src/ufo-center-of-rotation-task.h index 84763bc..5b82909 100644 --- a/src/ufo-center-of-rotation-task.h +++ b/src/ufo-center-of-rotation-task.h @@ -63,4 +63,5 @@ GType ufo_center_of_rotation_task_get_type (void); G_END_DECLS -#endif
\ No newline at end of file +#endif + diff --git a/src/ufo-cut-sinogram-task.h b/src/ufo-cut-sinogram-task.h index 49b233f..e2ef7e7 100644 --- a/src/ufo-cut-sinogram-task.h +++ b/src/ufo-cut-sinogram-task.h @@ -63,4 +63,5 @@ GType ufo_cut_sinogram_task_get_type (void); G_END_DECLS -#endif
\ No newline at end of file +#endif + diff --git a/src/ufo-dfi-sinc-task.h b/src/ufo-dfi-sinc-task.h index 6223880..d58c822 100644 --- a/src/ufo-dfi-sinc-task.h +++ b/src/ufo-dfi-sinc-task.h @@ -63,4 +63,5 @@ GType ufo_dfi_sinc_task_get_type (void); G_END_DECLS -#endif
\ No newline at end of file +#endif + diff --git a/src/ufo-flat-field-correction-task.h b/src/ufo-flat-field-correction-task.h index dd18a51..28c440b 100644 --- a/src/ufo-flat-field-correction-task.h +++ b/src/ufo-flat-field-correction-task.h @@ -63,4 +63,5 @@ GType ufo_flat_field_correction_task_get_type (void); G_END_DECLS -#endif
\ No newline at end of file +#endif + diff --git a/src/ufo-gaussian-blur-task.h b/src/ufo-gaussian-blur-task.h index 44af94b..90b6407 100644 --- a/src/ufo-gaussian-blur-task.h +++ b/src/ufo-gaussian-blur-task.h @@ -63,4 +63,5 @@ GType ufo_gaussian_blur_task_get_type (void); G_END_DECLS -#endif
\ No newline at end of file +#endif + diff --git a/src/ufo-meta-balls-task.h b/src/ufo-meta-balls-task.h index 5f9ae40..f8f2de2 100644 --- a/src/ufo-meta-balls-task.h +++ b/src/ufo-meta-balls-task.h @@ -63,4 +63,5 @@ GType ufo_meta_balls_task_get_type (void); G_END_DECLS -#endif
\ No newline at end of file +#endif + diff --git a/src/ufo-subtract-task.h b/src/ufo-subtract-task.h index 89fd36e..3fc5186 100644 --- a/src/ufo-subtract-task.h +++ b/src/ufo-subtract-task.h @@ -63,4 +63,5 @@ GType ufo_subtract_task_get_type (void); G_END_DECLS -#endif
\ No newline at end of file +#endif + diff --git a/src/ufo-swap-quadrants-task.h b/src/ufo-swap-quadrants-task.h index 56eabde..c4eb775 100644 --- a/src/ufo-swap-quadrants-task.h +++ b/src/ufo-swap-quadrants-task.h @@ -63,4 +63,5 @@ GType ufo_swap_quadrants_task_get_type (void); G_END_DECLS -#endif
\ No newline at end of file +#endif + diff --git a/src/ufo-volume-render-task.h b/src/ufo-volume-render-task.h index 67e74ec..f58e596 100644 --- a/src/ufo-volume-render-task.h +++ b/src/ufo-volume-render-task.h @@ -63,4 +63,5 @@ GType ufo_volume_render_task_get_type (void); G_END_DECLS -#endif
\ No newline at end of file +#endif + diff --git a/src/ufo-zeropadding-task.h b/src/ufo-zeropadding-task.h index 817332d..6f4f958 100644 --- a/src/ufo-zeropadding-task.h +++ b/src/ufo-zeropadding-task.h @@ -63,4 +63,5 @@ GType ufo_zeropadding_task_get_type (void); G_END_DECLS -#endif
\ No newline at end of file +#endif + |