OSDN Git Service

Update readme
authorwifiextender <router@archlinux.info>
Fri, 5 Aug 2016 12:33:54 +0000 (14:33 +0200)
committerwifiextender <router@archlinux.info>
Fri, 5 Aug 2016 12:33:54 +0000 (14:33 +0200)
README.md
m4/cflagz.m4
src/functions.c
src/functions_constants.h
src/main.c

index 120dac1..e1f26c0 100644 (file)
--- a/README.md
+++ b/README.md
@@ -295,6 +295,14 @@ dbus_message_new_method_call(
 
 ---
 
+Show the idle time in seconds/minutes: easy to be added via [XScreenSaverQueryInfo](http://linux.die.net/man/3/xscreensaverqueryinfo), but will discriminate the users that have compiled the program **--without-x11**.
+
+---
+
+Show the CapsLock/NumLock/ScrollLock indicator status for keyboard without LEDs: easy to be added via [XkbGetIndicatorState](http://linux.die.net/man/3/xkbgetindicatorstate), but will discriminate the users that have compiled the program **--without-x11**.
+
+---
+
 ## Want xinitrc template ?
 
 Take a look in my [xinitrc](https://github.com/wifiextender/dotfiles/blob/master/gentoo/home/frost/.config/misc/xinitrc) and [dwm-start](https://github.com/wifiextender/dotfiles/blob/master/gentoo/home/frost/.config/dwm_scripts/dwm-start).
index 39923bb..fb02c3c 100644 (file)
@@ -80,6 +80,9 @@ dnl and bail out with pre-defined error msg
 dnl when some FLAG is unsupported.
 AC_DEFUN([TEST_CFLAGZ],[
 
+
+  dnl -Wdeclaration-after-statement,
+
   AC_MSG_NOTICE([checking all CFLAGS])
   CHECK_CFLAGZ([
     -O2,
@@ -90,7 +93,7 @@ AC_DEFUN([TEST_CFLAGZ],[
     -pedantic,
     -Wundef,
     -Wshadow,
-    -w,
+    -W,
     -Wwrite-strings,
     -Wcast-align,
     -Wstrict-overflow=5,
@@ -99,12 +102,12 @@ AC_DEFUN([TEST_CFLAGZ],[
     -Wstrict-prototypes,
     -Wformat=0,
     -Wsign-compare,
-    -Wdeclaration-after-statement,
     -Wendif-labels,
     -Wredundant-decls,
     -Wmissing-prototypes,
     -Wno-unused-result,
     -Wno-unused-function,
+    -Wno-unused-variable,
     -Wno-missing-field-initializers
   ])
 
index 36819ae..c389ed8 100644 (file)
@@ -611,7 +611,7 @@ get_cpu_info(char *str1) {
     if (0 != vend_str) {
 
       for (x = 0x80000002; x <= 0x80000004; x++) {    /* movl $0x80000002, %esi */
-        CPU_STR(x, eax, ebx, ecx, edx);               /* cmpl $0x80000004, %eax */
+        CPU_STR2(x, eax, ebx, ecx, edx);              /* cmpl $0x80000004, %eax */
         char vend_chars[17]; /* 12 + 4 */
 
         for (z = 0; z < 4; z++) {
index 1a064e7..22d370b 100644 (file)
@@ -59,7 +59,7 @@
  * llvm Host.cpp */
 #define CPU_VENDOR(x, z) __asm__("cpuid": "=b" (z) : "a" (x))
 #define CPU_FEATURE(x, z) __asm__("cpuid": "=a" (z) : "a" (x))
-#define CPU_STR(regizter, a, b, c, d) __asm__( \
+#define CPU_STR2(regizter, a, b, c, d) __asm__( \
   "cpuid": \
     "=a" (a), \
     "=b" (b), \
index 3e6547a..c344943 100644 (file)
@@ -74,7 +74,7 @@ int main(int argc, char *argv[]) {
     { NULL,           0,                 NULL,  0  }
   };
 
-  short int ch = 0;
+  int ch = 0;
   while (0 < (ch = getopt_long(argc, argv, "McCIrspkvfmVthi:S:b:", options, NULL))) {
     switch (ch) {
       case 'M':