notification: Build when cloud is not enabled
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Fri, 12 May 2017 18:50:10 +0000 (20:50 +0200)
committerUze Choi <uzchoi@samsung.com>
Mon, 22 May 2017 05:46:53 +0000 (05:46 +0000)
Problem was observed while building with:

scons VERBOSE=1 RELEASE=true SECURED=0 WITH_MQ=PUB,SUB,BROKER

  service/notification/examples/linux/notificationconsumer.c:268:23: \
  error: 'CLOUD_ADDRESS' undeclared (first use in this function)
  service/notification/examples/linux/notificationconsumer.c:268:23: \
  note: each undeclared identifier is reported only once for each function it appears in

Bug: https://jira.iotivity.org/browse/IOT-2244
Change-Id: I12f9a457ac7f838b90567794cbb030bdf80c3dc9
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/19835
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
service/notification/examples/linux/notificationconsumer.c

index 8292132..9e97e3c 100644 (file)
 
 #define CLOUD_CONTEXT_VALUE 0x99
 
-char CLOUD_ADDRESS[100];
-char CLOUD_TOPIC[100];
 char CLOUD_AUTH_PROVIDER[100];
 char CLOUD_AUTH_CODE[100];
 char CLOUD_UID[100];
 char CLOUD_ACCESS_TOKEN[100];
 #endif
 
+#if defined (WITH_CLOUD) || defined (WITH_MQ)
+char CLOUD_ADDRESS[100];
+char CLOUD_TOPIC[100];
+#endif
+
 
 NSProvider * g_provider = NULL;
 NSTopicLL * g_topicLL = NULL;