[clinfo] 13/30: Warn about ignored command-line parameters

Andreas Beckmann anbe at moszumanska.debian.org
Tue Apr 28 12:53:52 UTC 2015


This is an automated email from the git hooks/post-receive script.

anbe pushed a commit to branch master
in repository clinfo.

commit e523c93db86fd5db19d9d56cc9e8202d1c296163
Author: Giuseppe Bilotta <giuseppe.bilotta at gmail.com>
Date:   Wed Mar 25 11:04:44 2015 +0100

    Warn about ignored command-line parameters
---
 src/clinfo.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/clinfo.c b/src/clinfo.c
index 7fd5296..c0aec16 100644
--- a/src/clinfo.c
+++ b/src/clinfo.c
@@ -2354,6 +2354,8 @@ int main(int argc, char *argv[])
 		} else if (!strcmp(argv[a], "--version") || !strcmp(argv[a], "-v")) {
 			version();
 			return 0;
+		} else {
+			fprintf(stderr, "ignoring unknown command-line parameter %s\n", argv[a]);
 		}
 	}
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/clinfo.git



More information about the Pkg-opencl-commits mailing list