aboutsummaryrefslogtreecommitdiff
path: root/gdb/contrib
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2016-11-25 10:29:50 -0800
committerJohn Baldwin <jhb@FreeBSD.org>2016-11-25 10:29:50 -0800
commit8227ffad95fcd835dd5fcb3e4915159e4552b397 (patch)
treecc587ab765e2aac7433511411eaad4eae2c12437 /gdb/contrib
parent50cc587fe49621a87283f06655fe922d45095076 (diff)
Remove check requiring void argument to functions with no parameters.
C++ treats an empty parameter list as no parameters unlike C. gdb/ChangeLog: * contrib/ari/gdb_ari.sh (no parameter function): Remove check.
Diffstat (limited to 'gdb/contrib')
-rwxr-xr-xgdb/contrib/ari/gdb_ari.sh10
1 files changed, 0 insertions, 10 deletions
diff --git a/gdb/contrib/ari/gdb_ari.sh b/gdb/contrib/ari/gdb_ari.sh
index 2ecc0d6651..e90dec853f 100755
--- a/gdb/contrib/ari/gdb_ari.sh
+++ b/gdb/contrib/ari/gdb_ari.sh
@@ -567,16 +567,6 @@ Function name in first column should be restricted to function implementation"
}
-# Functions without any parameter should have (void)
-# after their name not simply ().
-BEGIN { doc["no parameter function"] = "\
-Function having no parameter should be declared with funcname (void)."
- category["no parameter function"] = ari_code
-}
-/^[a-zA-Z][a-z0-9A-Z_]*[[:space:]]*\(\)/ {
- fail("no parameter function")
-}
-
BEGIN { doc["hash"] = "\
Do not use ` #...'\'', instead use `#...'\''(some compilers only correctly \
parse a C preprocessor directive when `#'\'' is the first character on \