Mercurial > pidgin
comparison configure.ac @ 16582:60f9ac8421ef
Add a couple more CFLAGS to highlight some more warnings and change how we
specify FORTIFY_SOURCE, I think this is more correct
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sat, 28 Apr 2007 12:58:16 +0000 |
parents | fe6fd0568d04 |
children | ce049678a67b |
comparison
equal
deleted
inserted
replaced
16577:467698ab6bf0 | 16582:60f9ac8421ef |
---|---|
848 dnl | 848 dnl |
849 for newflag in \ | 849 for newflag in \ |
850 "-Waggregate-return" \ | 850 "-Waggregate-return" \ |
851 "-Wcast-align" \ | 851 "-Wcast-align" \ |
852 "-Wdeclaration-after-statement" \ | 852 "-Wdeclaration-after-statement" \ |
853 "-Wendif-labels" \ | |
853 "-Werror-implicit-function-declaration" \ | 854 "-Werror-implicit-function-declaration" \ |
854 "-Wextra -Wno-sign-compare -Wno-unused-parameter" \ | 855 "-Wextra -Wno-sign-compare -Wno-unused-parameter" \ |
855 "-Winit-self" \ | 856 "-Winit-self" \ |
856 "-Wmissing-declarations" \ | 857 "-Wmissing-declarations" \ |
858 "-Wmissing-noreturn" \ | |
857 "-Wmissing-prototypes" \ | 859 "-Wmissing-prototypes" \ |
858 "-Wnested-externs" \ | 860 "-Wnested-externs" \ |
859 "-Wpointer-arith" \ | 861 "-Wpointer-arith" \ |
860 "-Wundef" \ | 862 "-Wundef" \ |
861 ; do | 863 ; do |
888 #endif | 890 #endif |
889 return 0; | 891 return 0; |
890 } | 892 } |
891 ], [ | 893 ], [ |
892 AC_MSG_RESULT(yes) | 894 AC_MSG_RESULT(yes) |
893 DEBUG_CFLAGS="$DEBUG_CFLAGS -D_FORTIFY_SOURCE=2" | 895 DEBUG_CFLAGS="$DEBUG_CFLAGS -Wp,-D_FORTIFY_SOURCE=2" |
894 ], [ | 896 ], [ |
895 AC_MSG_RESULT(no) | 897 AC_MSG_RESULT(no) |
896 ]) | 898 ]) |
897 fi | 899 fi |
898 | 900 |