Commit 3b0aa642 authored by Karl Wette's avatar Karl Wette
Browse files

lalsuite_gccflags.m4: check for -Qunused-arguments

- For clang, prevents unused command-line arguments from
  generating warnings (and hence errors via -Werror)
- Refs #2003
Original: e8e7370dae2d934bbef6d937ab6a39ef9222e3dc
parent bd414045
# -*- mode: autoconf; -*-
# lalsuite_gccflags.m4 - macros to set strict gcc flags
# serial 20
# serial 21
# $0: enable GCC warning flags
......@@ -28,7 +28,7 @@ AC_DEFUN([LALSUITE_ADD_GCC_FLAGS],[
-g3 -Wall -W -Werror -Wmissing-prototypes -Wstrict-prototypes -Wshadow
-Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -fno-common
-Wnested-externs -Wno-format-zero-length -fno-strict-aliasing
-Wno-unused-result -Qunused-arguments
],[gcc_cflags="${gcc_cflags} ${flag}"]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment