OSDN Git Service

Fix misc-macro-parentheses warnings in hardware/ril.
authorChih-Hung Hsieh <chh@google.com>
Wed, 29 Jun 2016 18:22:36 +0000 (11:22 -0700)
committerChih-Hung Hsieh <chh@google.com>
Wed, 29 Jun 2016 18:22:36 +0000 (11:22 -0700)
Add parentheses around negative literals.
Bug: 28705665
Test: build with clang-tidy

Change-Id: I038c7cbf3728a4e9ccc20d8c7317ddae3fa9b571

reference-ril/atchannel.h

index cfd49d5..9282915 100644 (file)
@@ -31,16 +31,16 @@ extern void  AT_DUMP(const char* prefix, const char*  buff, int  len);
 #define  AT_DUMP(prefix,buff,len)  do{}while(0)
 #endif
 
-#define AT_ERROR_GENERIC -1
-#define AT_ERROR_COMMAND_PENDING -2
-#define AT_ERROR_CHANNEL_CLOSED -3
-#define AT_ERROR_TIMEOUT -4
-#define AT_ERROR_INVALID_THREAD -5 /* AT commands may not be issued from
-                                       reader thread (or unsolicited response
-                                       callback */
-#define AT_ERROR_INVALID_RESPONSE -6 /* eg an at_send_command_singleline that
-                                        did not get back an intermediate
-                                        response */
+#define AT_ERROR_GENERIC          (-1)
+#define AT_ERROR_COMMAND_PENDING  (-2)
+#define AT_ERROR_CHANNEL_CLOSED   (-3)
+#define AT_ERROR_TIMEOUT          (-4)
+#define AT_ERROR_INVALID_THREAD   (-5) /* AT commands may not be issued from
+                                          reader thread (or unsolicited response
+                                          callback */
+#define AT_ERROR_INVALID_RESPONSE (-6) /* eg an at_send_command_singleline that
+                                          did not get back an intermediate
+                                          response */
 
 
 typedef enum {