summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2013-11-13 16:20:32 +0100
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2013-11-13 16:20:32 +0100
commitb570b6fa9e85fd2d0881fb9ddb2b2e4d47156748 (patch)
treeba80170ae7d5ac5c5c50425269a706d84c55d8ca /examples
parent33b7af2945685a1efecfee579ddef2c78cd9d43a (diff)
downloadlibrcc-b570b6fa9e85fd2d0881fb9ddb2b2e4d47156748.tar.gz
librcc-b570b6fa9e85fd2d0881fb9ddb2b2e4d47156748.tar.bz2
librcc-b570b6fa9e85fd2d0881fb9ddb2b2e4d47156748.tar.xz
librcc-b570b6fa9e85fd2d0881fb9ddb2b2e4d47156748.zip
Comment out unused variables to prevent warnings
Diffstat (limited to 'examples')
-rw-r--r--examples/example2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/example2.c b/examples/example2.c
index ebe75a9..13c280e 100644
--- a/examples/example2.c
+++ b/examples/example2.c
@@ -26,7 +26,7 @@
int main(int argc, char *argv[]) {
- rcc_language_id language_id, current_language_id, english_language_id;
+// rcc_language_id language_id, current_language_id, english_language_id;
rcc_string rccstring;
const char *language;
char buf[255];
@@ -48,11 +48,11 @@ int main(int argc, char *argv[]) {
// rccSetOption(NULL, RCC_OPTION_TIMEOUT, 5000000);
// rccSetOption(NULL, RCC_OPTION_CONFIGURED_LANGUAGES_ONLY, 0);
- current_language_id = rccGetCurrentLanguage(NULL);
- english_language_id = rccGetLanguageByName(NULL, "en");
+// current_language_id = rccGetCurrentLanguage(NULL);
+// english_language_id = rccGetLanguageByName(NULL, "en");
if (argc>1) rccSetLanguageByName(NULL, argv[1]);
else rccSetOption(NULL, RCC_OPTION_AUTODETECT_LANGUAGE, 1);
- language_id = rccGetCurrentLanguage(NULL);
+// language_id = rccGetCurrentLanguage(NULL);
language = rccGetCurrentLanguageName(NULL);
if (language) printf("Current Language: %s\n\n", language);