Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
aed9b9d1
Commit
aed9b9d1
authored
10 years ago
by
Hisham Muhammad
Browse files
Options
Download
Email Patches
Plain Diff
Test if -Wextra is supported. Closes #155.
parent
83a829a2
master
darwin-cpu-average
fixedgray
freebsd
linear-graph-scan
lua
next
perfcounters
pkgconfig-on-linux
solaris
sreclaimable
travis-ci
wip
3.0.0beta5
3.0.0beta4
3.0.0beta3
3.0.0beta2
3.0.0beta1
2.2.0
2.1.0
2.0.2
2.0.1
2.0.0
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile.am
+1
-1
Makefile.am
configure.ac
+13
-0
configure.ac
with
14 additions
and
1 deletion
+14
-1
Makefile.am
View file @
aed9b9d1
...
...
@@ -12,7 +12,7 @@ applications_DATA = htop.desktop
pixmapdir
=
$(datadir)
/pixmaps
pixmap_DATA
=
htop.png
htop_CFLAGS
=
-pedantic
-Wall
-W
extra
-std
=
c99
-rdynamic
-D_XOPEN_SOURCE_EXTENDED
-DSYSCONFDIR
=
\"
$(sysconfdir)
\"
-I
"
$(my_htop_platform)
"
htop_CFLAGS
=
-pedantic
-Wall
$(w
extra
_flag)
-std
=
c99
-rdynamic
-D_XOPEN_SOURCE_EXTENDED
-DSYSCONFDIR
=
\"
$(sysconfdir)
\"
-I
"
$(my_htop_platform)
"
AM_CPPFLAGS
=
-DNDEBUG
myhtopsources
=
AvailableMetersPanel.c CategoriesPanel.c CheckItem.c
\
...
...
This diff is collapsed.
Click to expand it.
configure.ac
View file @
aed9b9d1
...
...
@@ -68,6 +68,19 @@ AC_TRY_COMPILE(AC_INCLUDES_DEFAULT, [char *a; a = strdup("foo"); int i = 0; i++;
AC_MSG_ERROR([htop is written in C99. A newer version of gcc is required.]))
CFLAGS="$save_cflags"
save_cflags="${CFLAGS}"
CFLAGS="$CFLAGS -Wextra"
AC_MSG_CHECKING([if compiler supports -Wextra])
AC_TRY_COMPILE([], [], [
wextra_flag=-Wextra
AC_MSG_RESULT([yes])
],[
wextra_flag=
AC_MSG_RESULT([no])
])
CFLAGS="$save_cflags"
AC_SUBST(wextra_flag)
# Checks for features and flags.
# ----------------------------------------------------------------------
PROCDIR=/proc
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help